RE: [PHP] PHP Add +1 mysql updates by 2?

From: Date: Sat, 27 Nov 2010 06:29:53 +0000
Subject: RE: [PHP] PHP Add +1 mysql updates by 2?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-309704@lists.php.net to get a copy of this message
> -----Original Message----- > From: Richard West [mailto:php@cbnisp.com] > Sent: Friday, November 26, 2010 9:40 PM > To: Peter Lind > Cc: Tommy Pham; Tamara Temple; PHP General Mailing List > Subject: Re: [PHP] PHP Add +1 mysql updates by 2? > > I took that into consideration so I added the update at the very end of > document... > Still the same, > RD > <snip> Things to consider as part of your application design/flow: 1) Are you doing all PHP processing (application initialization, DB retrieval, user preference settings, etc.) before any header, echo, print, printf, output buffer, etc... ? At which point is the update done? 2) Are you sure the DB update is only called for or included/required once for that particular URL request? 3) Do you any have other page (js - or in page ajax calls, css, php, html, etc) that requests the page (with the update) again, as Peter mentioned? It will help you if you do an UML or a flow chart of the application flow. Regards, Tommy

« previous php.general (#309704) next »