TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Ending MySQL Query Execution? (http://www.talkphp.com/general/2206-ending-mysql-query-execution.html)

Orc 02-07-2008 07:33 PM

Ending MySQL Query Execution?
 
This thing has gotten me before, when you insert into the fields, new values, when its done querying, after you've pressed submit ( form to query ). Well if you refresh, it says stuff about the Post Data, yadda yadda, but if you do, it submits the values two times into the fields, how do I stop this? I've tried mysql_close(), unset(), and exit().

Village Idiot 02-07-2008 07:59 PM

The easiest way (can be bypassed if the execution takes long enough to hit refresh) is to do a meta redirect immediately after the script is done.
example: http://justanotherportfolio.com/1.php
That takes you to three pages.

The other way is to create a session on the form and destroy it after execution

Orc 02-07-2008 08:00 PM

Quote:

Originally Posted by Village Idiot (Post 10401)
The easiest way (can be bypassed if the execution takes long enough to hit refresh) is to do a meta redirect immediately after the script is done.
example: http://justanotherportfolio.com/1.php
That takes you to three pages.

The other way is to create a session on the form and destroy it after execution

Thank you! :]


All times are GMT. The time now is 05:11 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0