Wat is er fout aan deze PHP code?
$_config["username"] = 'root';
$_config["password"] = '';
$_config["host"] = 'localhost';
mysql_connect ($_config["host"], $_config["username"], $_config["password"]);
$naam = mysql_real_escape_string($_POST['naam']);
$pass = mysql_real_escape_string($_POST['pass']);
$query = " SELECT * WHERE `naam` = '".$naam."' AND
`wachtwoord` = '".$pass."' ";
$run_query = mysql_query($query);
$tellen = mysql_num_rows($run_query);
If ($tellen == 1 )
{
Echo "U bent nu ingelogd";
}
Else
{
Echo "oeps…. Daar ging iets fout!!!";
}
?>
ik krijg de error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\wamp\www\php-test\verwerk.php on line 20
eps….