DaveTomneyUK Posted July 3, 2006 Share Posted July 3, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/13583-mysql-error/ Share on other sites More sharing options...
effigy Posted July 3, 2006 Share Posted July 3, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/13583-mysql-error/#findComment-52618 Share on other sites More sharing options...
DaveTomneyUK Posted July 3, 2006 Author Share Posted July 3, 2006 this is line 75 of the function I cannot see nothing wrong.UPDATE - Sorted Quote Link to comment https://forums.phpfreaks.com/topic/13583-mysql-error/#findComment-52625 Share on other sites More sharing options...
effigy Posted July 3, 2006 Share Posted July 3, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/13583-mysql-error/#findComment-52632 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.