RE: PHP Add +1 mysql updates by 2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Richard West [mailto:php@xxxxxxxxxx]
> Sent: Friday, November 26, 2010 9:40 PM
> To: Peter Lind
> Cc: Tommy Pham; Tamara Temple; PHP General Mailing List
> Subject: Re:  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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux