Baevus
the names ethan
- Nov 4, 2012
- 565
- 47
I've been working on editing my own version of radiPanel all day.
So basically, if I update a user it updates ALL users info to what's been edited.
Is there a way to implement into this code so if the users id matches then it saves to that id if it makes sence?
Heres the code:
help appreciated!!
So basically, if I update a user it updates ALL users info to what's been edited.
Is there a way to implement into this code so if the users id matches then it saves to that id if it makes sence?
Heres the code:
PHP:
$db->query( "UPDATE users SET username = '{$username}'{$password}, habbo = '{$habbo}', displaygroup = '{$dgroup}', usergroups = '{$ugroups}', usertitle = '{$utitle}'" );
}
else {
$db->query( "INSERT INTO users VALUES (NULL, '{$username}', '{$password_enc}', '{$habbo}', '{$dgroup}', '{$ugroups}', '{$utitle}');" );
}
help appreciated!!