coding help wut does this mean

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rashawn116
Forum Newbie
Posts: 5
Joined: Wed Aug 12, 2009 3:43 am

coding help wut does this mean

Post by rashawn116 »

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/38/5225538/html/shop/includes/php/functions.php on line 29
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: coding help wut does this mean

Post by iankent »

Without seeing line 29 its difficult to say, but generally it means either the query hasn't been executed (with mysql_query()), or the result returned isn't valid (usually an error in your query)

just after your call to mysql_query() add a line to output the value of mysql_error(). that'll give you extra info from mysql to tell you whats wrong.

hth
Post Reply