Re: After INSERT form submit - Data doesn't refresh!

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

 



On Tue, Jul 22, 2008 at 9:48 AM, Rahul S. Johari <
sleepwalker@xxxxxxxxxxxxxxxx> 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

[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