Single threading a database call

From: Date: Thu, 25 Apr 2002 17:59:01 +0000
Subject: Single threading a database call
Groups: php.windows 
Request: Send a blank email to php-windows+get-13306@lists.php.net to get a copy of this message
I am making a call to a database to update a record incrementing the number in the field. When I put some load on this page, I get it returning the same number sometimes. This is unacceptable. because under heavier load people will be receiving the same number and it will not count the correct amount of page views. Is there any type of locking I can use to make sure that the operation is single threaded? Matt Babineau Freelance Internet Developer e: <mailto:mbabineau@illuminatistudios.com> mbabineau@illuminatistudios.com p: 603.943.4237 w: <http://www.illuminatistudios.com/> http://www.illuminatistudios.com

« previous php.windows (#13306) next »