Jump to content

[SOLVED] Does this error mean there is something wrong with my database?


db530

Recommended Posts

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /data/16/1/57/83/1546246/user/1664829/htdocs/sub_category.php on line 118

 

Here is an example page: http://www.industrialpc.com/sub_category.php?cat_id=161

 

I take it there is something wrong with my MySQL db, any suggestions?

Here is my connect function, it calls mysql_select_db....Is there any other code I should post?

 

function dbcon(){

global $host, $user, $pass, $db,$link;

if(!($link=mysql_connect($host,$user,$pass)))

{

sprintf("Internal error %d %s",mysql_errno(),mysql_error());

return 0;

}

else

{

return 1;

mysql_select_db($db);

}

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.