Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Short, Simple PHP Error.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Baevus" data-source="post: 334068" data-attributes="member: 24159"><p>I've been working on editing my own version of radiPanel all day.</p><p>So basically, if I update a user it updates ALL users info to what's been edited.</p><p>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?</p><p>Heres the code:</p><p>[PHP]</p><p> $db->query( "UPDATE users SET username = '{$username}'{$password}, habbo = '{$habbo}', displaygroup = '{$dgroup}', usergroups = '{$ugroups}', usertitle = '{$utitle}'" );</p><p></p><p></p><p> }</p><p> else {</p><p> </p><p> $db->query( "INSERT INTO users VALUES (NULL, '{$username}', '{$password_enc}', '{$habbo}', '{$dgroup}', '{$ugroups}', '{$utitle}');" );</p><p> </p><p> }</p><p>[/PHP]</p><p></p><p>help appreciated!!</p></blockquote><p></p>
[QUOTE="Baevus, post: 334068, member: 24159"] 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: [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}');" ); } [/PHP] help appreciated!! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Short, Simple PHP Error.
Top