39,323 Topics
| |
On a webpage, I have a table (generated on page load through php/html) on the side that has several links (one on each row), and when you click any of them it calls a javascript function (href='javascript:newtable()') that uses an ajax requests to populate the table again (performed by a … | |
Friends, I'm rushing towards deadline and I think that makes me do childish mistakes. Here I have validation that requires regex and each time I input valid expression preg_match returns false. It is long now I'm trying to spot error but I cannot! I have googled and AFAICS, things seems … | |
I need a little help getting started with this, suggestions would be great! The applications' purpose is this: a school is allocated a certain amount of $ for the year to spend on updating technology, it's called 'refresh'. The database has a table for the [B]location[/B] and amount of $ … | |
Hi, this is probably very easy for someone, I have a link that I am creating dynamically. There is no problem if I use a static link but when I try to make it dynamic, I get syntax errors. I am not really a php developer. If someone could help … | |
Hi all, The 2 tables are as follows. [B] account_details[/B] (account_number, nic, full_name, name_with_initials, phone_number, address, gender, date_of_birth) [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest) In my accounts opening form there are 9 fields. NIC, Full name, Name with initials, Phone number, Address, Gender, DOB, Account Type, FD period I want … | |
Hi all, I just know whether it will allow in php to store data in a sigle form into 2 tables, because i want to use these data in some other tasks. In my form there are 7 fields. They are [B]nic, full name, name with initials, phone number, address, … | |
Hi i want to know how to make space within hyperlinked text or images for example: <a href="http://www.daniweb.com">daniweb</a> <a href="http://www.daniweb.com">daniweb 2</a> so the output will be Daniweb daniweb 2 if add <BR> instead of </a> then it's now what i mean it's out put is that daniweb daniweb 2 is … | |
I am trying to upload few texts and the image using the code But its showing error have a look at the two codes... [CODE]<body> <center> <h2>Add News</h2> <form name="news_registration" action="addnews_process.php" method="post" enctype="multipart/form-data"> <table width="600" border="0" align="center"> <tr> <td width="49%" align="left">News Type</td> <td width="3%"> </td> <td width="48%" align="right"><select name="category" id="category"> <?php … | |
Hi, everyone. I have a button that links to another page, but it doesn't work. Here is the code: [code] <div class="pageNumbers"> <ul> <li><a href="shops1.html" class="pageNumber">1</a></li> //button 1 <li><a class="pageNumber" href="shops2.html">2</a></li> //button 2 </ul> </div> [/code] Do you know what is wrong with it? | |
I am not used to php but i need to use a script now, but it always give me a windwos error. This is my script: [code] $PHP_PATH = "c:\Program Files (x86)\PHP\\"; $PHP_PATH = addcslashes($PHP_PATH, ' '); $VR_PATH = dirname(__FILE__)."\VRClient.php"; $VR_SERVER = "http://localhost:8080/vrmobile/VRServer"; $handle = popen("C:\WINDOWS\system32\cmd /C start ".$PHP_PATH." -f … | |
Hi friends i am learning php now when i started my website which use php script i am creating a page which will consist of my friends links So I searched in my scripts forum and got this solution step 1 : create links.tpl and insert {$my_content} and save it … | |
I have categories, that came from database. I have to create pages for all the categories. For this I am creating menu and submenus are displaying categories. All submenu items must correspond pages. Here is an example: --------- Menu | --------- item1 | open item1.php (came from database) --------- item2 … | |
Hi people, I am so interested in learning PHP as it is a powerful language in the web. I know a little bit of PHP so you can say that I've got an intro to PHP at this stage. What I am really struggling the logic of PHP. What would … | |
I have a php script to process a web form and email the contents. It processes everything except the subject line correctly: [CODE]$emailSubject = 'Work Order: ' | $_POST['company'] ;[/CODE] i don't get any syntax errors, but the email displays the subject as a mismatch of letters and numbers? like … | |
I've got a website: [url]http://funnymash.com[/url] (this is not advertising). I need to add some cool features, like: When the photo who wins gets a green light and the other that loses gets a red light, how am I going to do this? Also I want to make it possible to … | |
Hi again,Guys.Here's my problrm. In [B]Appointments.php[/B] ,In the [B]Sector Drop down list[/B] when i select a sector,through AJAX i have selected the list of hospitals for the sector using [B]fun1()[/B] and displayed it back here in [B]appointsment.php[/B].Now that's ok. But when i try to acess the hospital select lists value … | |
Hi, I have some difficulty with my 'select' In my select/menu, I display all the options come from a table (table_db_email) in my database In this table ([B]tb_code_prmtn11_email[/B]) I have two field : [B]fld_email_id fld_name_email[/B] It works here is a code [CODE]<select name="email_adress_menu" id="email_adress_menu" class="valid" onchange="submit()"> <?php echo "<option selected=\"selected\" … | |
How two AJAX functions can be called on an event of a control? I am using check box, on checked/unchecked I want to populate combobox and want to show records in a DIV.. Please give complete code .. | |
Hello, I'm using Google Maps to show houses listings on the Google map. I'm also using AJAX to allow user to customize search parameters. Map is showing fine but the houses listings on the map is not working. Moreover, I'm getting the following pop up error; [url]http://imageshack.us/photo/my-images/857/screenshotpll.png/[/url] I'm also sharing … | |
Hi all! I'm a new to PHP and I embarked on a making a small store. One part of this involves making a form to add new products, and tables for categories. But I am getting this error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' on line … | |
I am trying my first PHP CLI using cURL, and simply want to complete a login to an HTTPS site. The site HTML is simple: [CODE]<body> <div class='plain-header'> <img src='/images/logo.jpg' /> </div> <div class='login-form'> <form method='post'> <table> <tr> <td class='fieldname'>Username:</td> <td> <input name='login' type='text' /> </td> </tr> <tr> <td class='fieldname'>Password:</td> … | |
I want to find frequency of all words in a given string. I wrote this code, but it is not giving correct output. Plz help [CODE] <?php //string here $wordsArray = "Hello world hello world this is hello world"; //echo($wordsArray); //function here $startPosForWord; $endPosForWord; $wordToMatch; $word; $scannedWords; $occurance = 0; … | |
Hello, i need aregex code that can add SPACE to evry line in text, thanks for helpers :) | |
Hi, i moved my site to a new server yesterday and my booking form is not working since then. I have html pages with a form action button as below; <form action="http://mydomain.com/tour_form.php" method="post" style="margin:0 0 0 0;"> <br> <input name="tn" type="hidden" value="product name"> <input type="submit" class="book" value="book now"> </form> and … | |
I'm working on ubuntu 10.10 , n have installed php5 and apache 2 but when I try to open a .php file by giving the complete url in the browser it pops up the window( refer thumbnail).Please help.I'm a beginner and I'm stuck on this god knows since when. | |
hi all, i have developed a joomla custom components and in the front end when the language is changed the text is not changing...even though i reloaded the language on refresh.. [CODE] $language =& JFactory::getLanguage(); $extension = 'com_raffle'; $base_dir = dirname(__FILE__); $language_tag = $language->getTag(); // loads the current language-tag $language->load($extension, … | |
Hello Is there a way to disable the php error logs per directory, if it is enabled globally?! I have this htaccess but it seems not to work: [CODE]<IfModule mod_php5.c> php_value display_errors 0 php_value allow_url_fopen 0 php_flag display_startup_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 php_flag log_errors … | |
[CODE] <html> <form> <table> <tr> <td width="172" class="label" > </td> <td class="content" colspan="3" > Grwt <input name="grWeight" type="text" class="box" id="grWeight" size="20" maxlength="255" /> ntwt <input name="netWeight" type="text" class="box" id="netWeight" size="20" maxlength="255" /> crwt <input name="crWeight" type="text" class="box" id="crWeight" size="20" maxlength="255" /></td> </tr> </table> </form> </html> [/CODE] In above code i want … | |
Hello, I'm working on ubuntu 10.10, have apache2 and php5 installed.But just to check that they are working fine, when I try to access my IP server address page, it asks for a username and password.The log-in username and password do not work.Please help Regards. | |
Dear All, I am trying to apply transaction into my codes. Below is what I have done. It works fine. I would just like to know incase is there something wrong or missing in my way ? Thank you. What is different between mysql and mysqli ? [CODE]$rollbackStatus=False; $link = … |
The End.