searls03 Posted November 18, 2012 Share Posted November 18, 2012 Ok, i have been staring at this for hours and I can't seem to figure it out! this query keeps returning that the argument is not a valid mysql query result resource: <?php // Query member data from the database and ready it for display $sql = mysql_query("SELECT * FROM categ where pares ='0'"); while($row = mysql_fetch_array($sql)){ $category = $row["categorys"]; ?> I have included a screen shot of what the database looks like. can anyone help me????? this is making me very mad. Link to comment https://forums.phpfreaks.com/topic/270872-query-error/ Share on other sites More sharing options...
searls03 Posted November 18, 2012 Author Share Posted November 18, 2012 I got it now. I had been using the wrong database. sorry. Link to comment https://forums.phpfreaks.com/topic/270872-query-error/#findComment-1393416 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.