P
piepieonline
Guest
I'm connecting to a database for a login, however, this code is causing me problems:
$query = "select (*) from login where (user = fre and pass = fred)";
$result = mysql_query($query, $db);
echo "$result<br>";
It outputs nothing...
I have tried "mysql_num_rows", and it give mes me the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Web Site\Site\reg.php on line 25
$query = "select (*) from login where (user = fre and pass = fred)";
$result = mysql_query($query, $db);
echo "$result<br>";
It outputs nothing...
I have tried "mysql_num_rows", and it give mes me the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Web Site\Site\reg.php on line 25