Jump to content

msql 5 question


asavage

Recommended Posts

Hi I am beginner with PHP and mysql. I just switched web hosting companies. My previous server was using mysql 4.1, now my new one uses mysql 5.0.

My code was working fine with 4.1, but now with the same code and databases I receive this error on two occasions.

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.vivan/asavage/www.quinnauctions.net/login.php on line 30

 

if(mysql_num_rows($result) == 1) {

session_start();

$_SESSION['logged_in'] = true;

header('Location: protected.php');

}

How is this suppose to be to work with mysql 5?

Link to comment
https://forums.phpfreaks.com/topic/77581-msql-5-question/
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.