There's an autoincrement feature for mysql colums, why don't you consider that?
CREATE TABLE auto_increment (id INT (4) NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), UNIQUE(id), INDEX(id)) ----- Original Message ----- From: "John Clegg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 11, 2003 6:07 PM Subject: [PHP] Best way to increment an integer column in mysql Hi I was wondering if there is a php / mysql function call that will increment an integer column in a database. ie. the equivalent to $foo++; Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php