View Single Post
  #5 (permalink)  
Old Aug 2nd, 2006, 14:04
mtgmaster mtgmaster is offline
New Member
Join Date: Aug 2006
Location: UK
Age: 21
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Increasing Number Generator..

EDIT: Read below.

You should be able to do it all in one query:
Code: Select all
mysql_query("UPDATE WORNum SET num=num+1 WHERE id='1' ");
Might work, cant really think of it off the top of my head. Just have the table with 2 fields, id and num.

Last edited by mtgmaster; Aug 2nd, 2006 at 14:54.
Reply With Quote