Re: After INSERT form submit - Data doesn't refresh!
| From: | Thiago H. Pojda | Date: | Tue, 22 Jul 2008 12:56:19 +0000 |
| Subject: | Re: After INSERT form submit - Data doesn't refresh! | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277164@lists.php.net to get a copy of this message | ||
On Tue, Jul 22, 2008 at 9:48 AM, Rahul S. Johari <
sleepwalker@rahulsjohari.com> wrote:
>
> Here's what it is:
>
> I have a php page, "a.php", which contains these three things:
>
> - SELECT statement to display records from a mySQL Table
> - HTML Form for inserting data into the mySQL Table
> - INSERT statement to insert that row into the mySQL Table
>
I understand that but I don't see any caching issue yet. That's why I asked
for your code, can you provide an example? :)
>
> The HTML Form submits to the same, "a.php"
> Once the user submits the Form, a.php is called which INSERT's the row into
> the mySQL Table. However, the row does not appear in the SELECT statement
> table data unless I hit refresh on the page. (The INSERT function is
> executed before the SELECT in the page).
>
And does the row appear in MySQL?
Regards,
--
Thiago Henrique Pojda