Page 1 of 1
					
				question on increasing prices for individual players
				Posted: Mon Dec 20, 2010 8:07 pm
				by s0meone
				How would I write the code to increase the price of an item every time it's purchased by a player for that player only?
			 
			
					
				Re: question on increasing prices for individual players
				Posted: Mon Dec 20, 2010 11:26 pm
				by hallsofvallhalla
				create table with fields of itemID, pname, and bought
 when a player buys an item have it check to see if a entry is already there by itemID and pname, 
if not insert one where bought = 1
if there is already a entry then update it and add 1 to bought. bought will be your counter.
			 
			
					
				Re: question on increasing prices for individual players
				Posted: Tue Dec 21, 2010 2:36 am
				by s0meone
				Thanks again sir halls. You're always helpful.