Jump to content

Please Help Me.


corneleus

Recommended Posts

Hello everyone,

 

I have recently tried an Ajax/PHP tutorial from http://www.w3schools.com/PHP/php_ajax_database.asp

 

They have a working example of this code on the above url.  I tried to mimic this code in my apache server to see if I could get it working.

However I keep getting this error: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in etc.

 

It's telling me that the error is in the php script around the while clause.  However I can't see an immediate problem.  Or perhaps i'm being blind.

 

Please can anybody help me?

Link to comment
https://forums.phpfreaks.com/topic/246752-please-help-me/
Share on other sites

Yeah, I was thinking that perhaps the query has failed somewhere, but I can't see anything that looks wrong in the code to tell.  I've got a feeling that AJAX isn't sending any variables in the URL parameter to be parsed by PHP.  But I'm pretty new to AJAX and was wondering if anyone can offer any insight into a more correct way to send url variables to php through an AJAX call.

 

If anyone can help I'll be very greatful.

Link to comment
https://forums.phpfreaks.com/topic/246752-please-help-me/#findComment-1267371
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.