help me again my friend refresh page then show new data......

Hello Friend, First thank all member who help me.
My question is that when i am submit the any data in MYSQL using the PHP Code. Data add in MySQL When i see the data in PHP page not show the new field data when i am press F5 its mean Refresh then show new and old data why i am not press but show new and old data please Help me how can possible this.
Thanks

If you’re wanting the new stuff to come up when its submitted, just put insert code on top top of the page and your display stuff on the bottom.

display an other page not submitted page.
see this web sit

You did all that and can’t figure out how to go to another page? Just use Header(‘Location: somepage.php’); after the insert.

please guide complete code bit please “see all record” on my web site when filed all data then not show new data whenever i am refresh the page

i am give example you i am using WWW.phphelp.com when i am add new topic or reply then show new data front page i am not refresh this page show new data. but my web page not show new data only show old data when i am refresh page then show new data. when i am close web page and open new page again and field new data then too not show new data. how can this i am field and open page and show new data.

Do us both a favor, post the code you have for the page you’re having issues with, because you’re telling me two different things, or i’m not understanding the problem you’re having.

If the submit and results are on different pages, then the new stuff won’t appear until its refreshed.

first thanks for help. ok i again tell i am create a school web site who insert the record in this web site if u see page only record add then open this page


when i am insert the record then i am show this record and open this page

but not show my new record but when i am press F5 page refresh then show new record why i am want that when i am open this http://ramzan.site88.net/class812/alltotal.php all record show

I just went through the site and except for the missing gender in the links, it seems to work.

But, to answer the question of how to move to another page after a submission
[php]
if(isset($_POST[‘submit’])) {
// validation code
// insert query
if($query) {
header(‘Location: alltotal.php’);
} else {
// insert failed error message
}
}[/php]
Once the data was been inserted, it’ll automatically open up a new tab or window and display the updated info on the alltotal page.

when i am submitted to saverecord.php then saverecord.php send Location: alltotal.php

tell me script one time page refresh automatic when i am open page

maybe something like
[php]
$_SESSION[‘refresh’] = 0;

if($_SESSION[‘refresh’] != 1) {
for($timer = 0; $timer != 61; $timer++) {
if($timer == 60) {
header(‘Location: alltotal.php’);
$_SESSION[‘refresh’] = 1;
}
}
}[/php]
That should work, when it hits 60, it’ll refresh the page and then stop.

free counters

Sponsor our Newsletter | Privacy Policy | Terms of Service