Jump to content


Photo

mysql_fetch_array() error


  • Please log in to reply
2 replies to this topic

#1 tiny

tiny
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 08 November 2005 - 06:24 AM

I have been trying to retrieve all rows from a table by using the mysql_fetch_array function but I always get this "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource" error.

I am using PHP verison 4.3.11 and Mysql version 4.1.13-standard

Does my php or mysql version have anything to do with this? because it does work when I was still using an older version of mysql on my host before.. Please help! I've been trying to figure it out, but I cant. What should I do about this?

Thanks!

#2 Cook

Cook
  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts
  • LocationSingapore

Posted 08 November 2005 - 06:26 AM

Very likely it's your query that is malformed. Check out the pinned topics in the PHP Newbie Help forum.
Cook

#3 tiny

tiny
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 08 November 2005 - 06:33 AM

Hi Cook, I rechecked my Select query and you are right! Thanks muchos! It's now working :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users