Jump to content

[SOLVED] Simple MySQL/PHP Warning/Error


kts

Recommended Posts

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in column_left2.php on line 27

 

 

	$parents_cat_id = mysql_query("SELECT * FROM categories WHERE parent_id = ".$catpath)or die(mysql_error());
	   	$parents_cat_id = mysql_num_rows($parents_cat_id) or die(mysql_error());
		while ($parent_c = mysql_fetch_array($parents_cat_id)){
			$new_parents_cat_id = $parent_c['categories_id'];
		}

Link to comment
https://forums.phpfreaks.com/topic/82564-solved-simple-mysqlphp-warningerror/
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.