NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page help please!!!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-20-2006, 09:12 AM THREAD STARTER               #1 (permalink)
Senior Member
 
SeanPreston's Avatar
Join Date: Nov 2005
Location: UK
Posts: 1,278
SeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud ofSeanPreston has much to be proud of
 


Protect Our Planet Child Abuse Marrow Donor Program Animal Rescue

help please!!!


Hi, im the owner of globalconflict.info. Its basically an online rpg game. Each member gets 500 attack points(1-10 are used for every time they attack another player). They are asposed to update every 24 hours but they dont. I am willing to go online every day and update the "attack points" table in phpmyadmin. Instead of going through every member and editing that feild, is there a way that i can reset them all to 500 realy quickly?
thanks
sean
SeanPreston is offline  
Old 10-21-2006, 12:03 PM   #2 (permalink)
New Member
Join Date: Apr 2006
Posts: 2
JulyWeb is an unknown quantity at this point
 



Hey there,

You will just have to run a SQL query, but can't say more unless you give more details on the database structure ...
JulyWeb is offline  
Old 10-21-2006, 01:34 PM   #3 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




Just use this sql:

Code:
update [name of your users table] set [name of attacks field] = 500
You could put it into a script and set up a cron to run it every 24 hours.
Barrucadu is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:28 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger