chard Posted October 22, 2007 Share Posted October 22, 2007 Hi, I have just transferred a website from a server with mysql5 to a server with mysql4. I am receiving this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in Is this not backward compatible? Quote Link to comment https://forums.phpfreaks.com/topic/74258-mysql_num_rows/ Share on other sites More sharing options...
derwert Posted October 22, 2007 Share Posted October 22, 2007 Check mysql_error() My best guess is you didn't set the database username and password for the new server in the script. Quote Link to comment https://forums.phpfreaks.com/topic/74258-mysql_num_rows/#findComment-375175 Share on other sites More sharing options...
fenway Posted October 22, 2007 Share Posted October 22, 2007 Or the query didn't execute sucessfully Quote Link to comment https://forums.phpfreaks.com/topic/74258-mysql_num_rows/#findComment-375451 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.