I got a problem on a PHP Code. Can you help me?

Sena

New member
This is my code:

<?
$sessionsss = md5("$log_password $log_email");
$sql=mysql_query("SELECT * FROM user WHERE SESSION='$sessionsss'");
$total=mysql_num_rows($sql);
?>

I tried, but there's a problem. It says an error like this:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\socializer\login.php on line 30

Please help, why it's happening
 
Back
Top