hello again, i am having a problem on refreshing my page dynamically... i have an administrator page that will monitor all the records in the database, and the function redirect($time, $topage) { echo "<meta http-equiv=\"refresh\" content=\"{$time}; url={$topage}\" /> "; } where redirect(0,"same page"); PHP: the page runs through AJAX thanks in advance...
Brackets are supposed to be there, they are enclosing a function. The where clause should be scrapped. If you are trying to put in the same page, you can use redirect(0, $_SERVER['REQUEST_URI']); Besides those syntax errors, I really don't understand your problem, elaborate.
oh sori about the where i call on my function redirect to my script where the script undergoes AJAX then to my index administrator page.. this page must update whenever a record has been change in the database. and one thing i can think of is to refresh the same page in order to synchronize the changes... theres no error on the script, but the page doesnt seem to update...
anyways about the page refreshing. i still havent got the right code for this one,, i also used document.refresh in JS still not working any answers from our masters.? = )