Comments on: Get a taste of AJAX with PHP /php/get-a-taste-of-ajax-with-php/ A glimpse at a coder's troubled mind Tue, 21 Jun 2011 13:27:40 +0000 hourly 1 http://wordpress.org/?v=3.2.1 By: stolen [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-194 stolen [Visitor] Mon, 09 Nov 2009 08:20:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-194 hi to everybody, pls help me for this problem, i m new in php.....<br /> <br /> i want show message in this ajax function<br /> function saveClass($className)<br /> {<br /> global $db_obj;<br /> $objResponse = new xajaxResponse();<br /> $mess = '';<br /> <br /> $sql="select * from class where classname='".$className."'";<br /> $rres = $db_obj->query($sql);<br /> if(mysql_num_rows($rres )>0)<br /> {<br /> //i want show message here<br /> }<br /> else<br /> {<br /> ///unset($_SESSION['alert']);<br /> $_SESSION['alert']= " "; <br /> $sql ="insert into class (className) values('".$className."')";<br /> $insert_user_query = $db_obj->execute($sql);<br /> return $objResponse->getXML();<br /> }<br /> }<br /> <br /> $xajax->processRequests();<br /> <br /> <br /> //pls help this problem hi to everybody, pls help me for this problem, i m new in php…..

i want show message in this ajax function
function saveClass($className)
{
global $db_obj;
$objResponse = new xajaxResponse();
$mess = ”;

$sql=”select * from class where classname=’”.$className.”‘”;
$rres = $db_obj->query($sql);
if(mysql_num_rows($rres )>0)
{
//i want show message here
}
else
{
///unset($_SESSION['alert']);
$_SESSION['alert']= ” “;
$sql =”insert into class (className) values(‘”.$className.”‘)”;
$insert_user_query = $db_obj->execute($sql);
return $objResponse->getXML();
}
}

$xajax->processRequests();

//pls help this problem

]]>
By: mariano.iglesias [Member]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-193 mariano.iglesias [Member] Mon, 14 Sep 2009 09:55:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-193 @Eva:<br /> <br /> This is a very old post (4+ years) so I really don't have the source code I used back then.<br /> <br /> These days I recommend to anyone who wants to develop PHP based applications to use a framework, such as CakePHP:<br /> <br /> http://www.cakephp.org<br /> <br /> It greatly simplifies the whole development cycle.<br /> <br /> You should try it out. @Eva:

This is a very old post (4+ years) so I really don’t have the source code I used back then.

These days I recommend to anyone who wants to develop PHP based applications to use a framework, such as CakePHP:

http://www.cakephp.org

It greatly simplifies the whole development cycle.

You should try it out.

]]>
By: Eva [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-192 Eva [Visitor] Mon, 14 Sep 2009 06:51:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-192 Hi, I'm beginner with PHP. I just downloaded xajax.ini.php files and your example code. it can not work, and there is no error. I don't know why. Can you give the entire code including the php files that you used. Thank you very much.<br /> Best wishes. Hi, I’m beginner with PHP. I just downloaded xajax.ini.php files and your example code. it can not work, and there is no error. I don’t know why. Can you give the entire code including the php files that you used. Thank you very much.
Best wishes.

]]>
By: Diego Juritz [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-191 Diego Juritz [Visitor] Tue, 25 Jul 2006 11:50:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-191 Mariano: useful as usual!<br /> Great example.<br /> I had tried it and it worked!<br /> Thanks! Mariano: useful as usual!
Great example.
I had tried it and it worked!
Thanks!

]]>
By: elvisman [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-190 elvisman [Visitor] Thu, 08 Jun 2006 18:20:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-190 I'm not sure if ajax is a technology to be followed... check this:<br /> http://weblogs.java.net/blog/evanx/archive/2006/05/swing_trounces.html I’m not sure if ajax is a technology to be followed… check this:
http://weblogs.java.net/blog/evanx/archive/2006/05/swing_trounces.html

]]>
By: derek [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-189 derek [Visitor] Fri, 12 May 2006 11:28:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-189 Very interesting and professional site! Good luck! Very interesting and professional site! Good luck!

]]>
By: Sérgio Berlotto [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-188 Sérgio Berlotto [Visitor] Thu, 19 Jan 2006 14:31:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-188 Great syntax higlhither...<br /> So good !<br /> <br /> I will install on my site...<br /> <br /> Great syntax higlhither…
So good !

I will install on my site…

]]>
By: Gaurav Arora [Visitor]/php/get-a-taste-of-ajax-with-php/comment-page-1/#comment-187 Gaurav Arora [Visitor] Wed, 04 Jan 2006 22:35:00 +0000 /1/get-a-taste-of-ajax-with-php/#comment-187 Thank you so much for the article and the example. I had to make a signup form for a client which pulled data from a database of countries, states and cities. Your example was most useful...infact it was THE only thing I needed to read to accomplish the task.<br /> <br /> Once again, thanks a lot. Thank you so much for the article and the example. I had to make a signup form for a client which pulled data from a database of countries, states and cities. Your example was most useful…infact it was THE only thing I needed to read to accomplish the task.

Once again, thanks a lot.

]]>