Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
Admin32
Regular
Regular



Joined: Sep 14, 2003
Posts: 74

PostPosted: Fri Oct 03, 2003 8:05 am Reply with quote

Hi everyone,

I need to change a value in every user's entry in my SQL database.

I had a problem with the user's avatars which were not being displayed, and I tracked it down to the "nuke_users" table, the "user_avatar_type" which was set to zero (0) and needed to be three (3).

So I manually changed a few via phpmyadmin and everything worked fine. Now I'm left with another 500 users !

Here is the script phpmyadmin came up with for one specific user:

UPDATE `nuke_users` SET `user_theme` = NULL ,
`user_avatar_type` = '3' WHERE `user_id` = '426' LIMIT 1 ;

Now, what I want to do is modify it to include a range of user_id's .. for example from user_id=10 to user_id=100

How would this be possible ?

_________________
___________________
Chris Partsenidis
Founder & Senior Editor [ Only registered users can see links on this board! Get registered or login! ]
___________________ 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Oct 03, 2003 8:26 am Reply with quote

Code:
UPDATE nuke_users SET user_theme = NULL , 

user_avatar_type = 3 WHERE user_id > 9 AND user_id < 101;
 
View user's profile Send private message
Admin32







PostPosted: Fri Oct 03, 2003 8:28 am Reply with quote

Thanks a million Raven Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©