hi I want use following script for users login, but by some reason mysql query returns empty and I througth user exist it can't login
eny ideas?
I have tryed to echo values, but there is no data in $info ... why is that?
query
$sql = "SELECT mobile,pwd
FROM customer
WHERE mobile = '".$_POST['mobile']."'";
$check = mysql_query( $sql ) or die( mysql_error() . '<br>' . $sql );
$info = mysql_fetch_row( $check );
and I check posted values
if ( $_POST['mobile'] != $info['mobile'] ) {
die( 'wrong login number.' );
}
if ( $_POST['pwd'] != $info['pwd'] ) {
die( 'Wrong password.' );
}