fimi
12-13-2003, 11:23 PM
hi,
im trying to make a simple login system but whenever i execute the query from the script with mysql_query i get no answer.
However, when i execute the same query in phpmyadmin i get the answer....its making me so nervous!!!!!ohhhhh :rolleyes: :confused:
SELECT username,passwd FROM gl_users WHERE username='fimi' AND passwd='ef43d744e6227ce0cca48d34a2a4880a'
// that is the result of:
$query = "SELECT username,passwd FROM gl_users WHERE username='$u_name' AND passwd='$u_pass'";
//now, when i try to see how many rows were effected get no answer!
$result = mysql_query($query) or die("Error: " . mysql_error());
// NOW FOR mysql_num_rows($result) i get now value!!!!
WTF is going on??????:mad:
what m'i doing wrong?:o
thx....
im trying to make a simple login system but whenever i execute the query from the script with mysql_query i get no answer.
However, when i execute the same query in phpmyadmin i get the answer....its making me so nervous!!!!!ohhhhh :rolleyes: :confused:
SELECT username,passwd FROM gl_users WHERE username='fimi' AND passwd='ef43d744e6227ce0cca48d34a2a4880a'
// that is the result of:
$query = "SELECT username,passwd FROM gl_users WHERE username='$u_name' AND passwd='$u_pass'";
//now, when i try to see how many rows were effected get no answer!
$result = mysql_query($query) or die("Error: " . mysql_error());
// NOW FOR mysql_num_rows($result) i get now value!!!!
WTF is going on??????:mad:
what m'i doing wrong?:o
thx....