06-07-2008, 05:40 PM
|
#5 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
PHP Code:
if($udata[client] == 1) { $_SESSION['id'] = "$user[id]"; $_SESSION['password'] = "$user[password]"; } ....
should that not be:
PHP Code:
if($udata['client'] == 1) { $_SESSION['id'] = $udata['id']; $_SESSION['password'] = $udata['pass']; ..... }
also the query in the second code block seems to be pointless, you also forgot to put quotes round some of your associative array keys.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|