PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

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

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 ?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

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

Thanks a million Raven Smile
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum