Jump to content

Archived

This topic is now archived and is closed to further replies.

DaveTomneyUK

MySQL Error

Recommended Posts

Hi,

Does anyone know why I am getting this error on the bottom of my site the only way I can get shut of it is by adding a @ at the start of the include function.

[code]
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/linux/user/htdocs/.inc/func/database.inc on line 75
[/code]

Share this post


Link to post
Share on other sites
Because the query link that mysql_num_rows is using is "not a valid MySQL result resource in /home/linux/user/htdocs/.inc/func/database.inc on line 75". You should have more error reporting in place.

Share this post


Link to post
Share on other sites
When working with a database, the [b]or die[/b] syntax is preferred, and should be used at (1) connection, (2) selection, and (3) query. Your MySQL resource is not valid, which means one of these steps failed.

Share this post


Link to post
Share on other sites

×

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.