<?php
require "koodit/yhteys.php";
if(!mysql_num_rows(mysql_query("SELECT * FROM kayttajat WHERE
nimi='".mysql_real_escape_string($nimi1)."' AND
salasana='".mysql_real_escape_string(md5($salasana1))."'"))or die (mysql_error())==1)
{
echo "FAIL";
}else{
echo "Kirjauduit!";
$_SESSION['nimi'] = $nimi;
}
?>
What's wrong with this code? Everytime I put 100% right information to form I get FAIL message!! :OI might be blind because not seeing it, eventough 1st time using md5 :o!


Sign In
Create Account


Back to top









