![]() |
Quick SQL question
Any way to quickly reset an user's info with one SQL command? Like that it restores everything to their default setting.
I need to reset items_user table for specific userid with 1 command to it's default values but don't know how. :( Would be something like... PHP Code:
|
No idea how to reset a row to default values except the user id? :/
|
Couldn't you just use DEFAULT?
|
I could write you the sql statement, but I know the itemshop works similar to profilefields so in order to reset all of them I would need to know exactly what your sql structure for that table is. If you do a backup for the items_user table to get its structure I will gladly write you the sql.
Cheers, g-force2k2 |
1 Attachment(s)
Ok here it is for the current data.
|
DarkSavior try this code:
PHP Code:
|
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\www\forums\member.php on line 1245
Getting that one... Line 1245 is the first line of that code. I just added it after the partial reset add-on. |
Try making $bbuserinfo['userid'] just $bbuserinfo[userid]
Regards, g-force2k2 |
Ok that one worked. Thanks, gotta add it to reset the Icon too though, but I think I can manage it with this now. :)
Thanks again g-force2k2! |
Quote:
Cheers, g-force2k2 |
All times are GMT. The time now is 08:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|