tiny Posted November 8, 2005 Share Posted November 8, 2005 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! Quote Link to comment https://forums.phpfreaks.com/topic/2825-mysql_fetch_array-error/ Share on other sites More sharing options...
Cook Posted November 8, 2005 Share Posted November 8, 2005 Very likely it's your query that is malformed. Check out the pinned topics in the PHP Newbie Help forum. Quote Link to comment https://forums.phpfreaks.com/topic/2825-mysql_fetch_array-error/#findComment-9465 Share on other sites More sharing options...
tiny Posted November 8, 2005 Author Share Posted November 8, 2005 Hi Cook, I rechecked my Select query and you are right! Thanks muchos! It's now working Quote Link to comment https://forums.phpfreaks.com/topic/2825-mysql_fetch_array-error/#findComment-9466 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.