Q(Question): I have a user that typed the following into an input field set 30ยบ This data was stored in the table using software other than php. Now I am writing some new access code in php and while the data is retrieved from the table correctly, the ajax response returns a null value for ..

Read more

Q(Question): Hello, Its possible to execute a php function one time for unique user ? or by user order ? I mean, if two different user connected in the same time, is possible to execute a php function only for user 1, when finish then execute for user 2… Some one know how ? A(Answer): ..

Read more

Q(Question): i used button for reply action.when click the reply the text box will com using ajax.the ajax function is called through button as i said earlier. but i want to post my reply for corresponding comments so any one plz help to how to pass the id through button. A(Answer): hi marimuthuit, assign the ..

Read more

Q(Question): Hi, I am trying to insert form data into two tables in my database but I keep getting this error: Parse error: syntax error, unexpected T_STRING in /websites/123reg/LinuxPackage21/fo/ur/wa/fourwaysdp.co.uk/public_html/process.php on line 18 What am I doing wrong? <?php $dbhost=""; $dbuser=""; $dbpass=""; $dbname=""; $con=mysql_connect($dbhost, $dbuser, $dbpass) or die(‘Error connecting to the database:’ . mysql_error()); $mysql_select_db($dbname, $con); ..

Read more

Q(Question): I was wondering if its possible to add text on the fly on a PDF download when using the below code, I’ve been unable to get it to work, I’ve tried echoing it and adding it to the var that the files being stored to with no luck, any ideas? $chunksize = 1*($fileChunkSize); $bytes_send ..

Read more

Q(Question): I am new to php and want to know how to call some java function in php? i want to call a java code on a button click.Can you please tell me how to do it? Thanx in advance A(Answer): Do you mean Java or JavaScript as they are very different. I just want ..

Read more

Q(Question): Hey all, You’ll have to forgive me here, I’m a C# developer so my PHP lingo might not be quite right. I’ll try to explain the problem as best I can and hopefully you guys get the idea. I want to define a method in an interface, then implement that interface in what will ..

Read more

Q(Question): Ok. So I have a PHP function that is supposed to be sending back a customized string that the AJAX will interpret and automatically update/select an option in a select menu. The problem I am running into is that the AJAX isn’t receiving anything (or it would seem). Not sure if I am completely ..

Read more