Re: database abstraction layer

From: Date: Tue, 02 Feb 2010 22:46:03 +0000
Subject: Re: database abstraction layer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301751@lists.php.net to get a copy of this message
On Tue, 2010-02-02 at 23:19 +0100, Rene Veerman wrote: > function getMax($table, $field) If I saw this sort of code I'd be appalled! It's possibly the worst way to get the auto increment value. You won't notice it testing the site out on your own, but all hell will break loose when you start getting a lot of hits, and two people cause an auto increment at the same time! Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#301751) next »