View Single Post
Old 06-07-2008, 05:40 PM   #5 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote