> -----Original Message-----
> From: Richard West [mailto:p...@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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to