Posted: Sat May 22, 2004 6:05 pm Post subject: refreshing mysql php page
Hey guys.. haven't been here for ages .. heh e
oh well
Here is my question :
i want to make a php page that will refresh itself without a client.... and will continuously update a mySQL field.. dunnu if this is possible.. but can anyone help.. so it's either the page is updated without a client and sends data to the thing.. or somehowlike that .. plz help
Sponsor Sponsor
Amailer
Posted: Sun May 23, 2004 4:32 pm Post subject: (No subject)
code:
<meta http-equiv="refresh" content="3600">
i think that's it, the content is the time after each refresh or w/e
santabruzer
Posted: Sun May 23, 2004 11:01 pm Post subject: (No subject)
no .. .. you aren't hearing me.. that's to refresh the page.. i simply need to refresh the data in a mysql location... ok
You have a server.... it send datapacket "a" every 5 seconds... how would you record and update that packet every 5 seconds in the mysql database?
Amailer
Posted: Mon May 24, 2004 7:52 pm Post subject: (No subject)
not sure but try this
code:
<?
if(time()%5 == 0) {
do your updating-- your query *predictign you know hwo to do that*
}
?>
but im not sure if you are doing anything with mysql... you have to go visit the page to trigger the query--- or it can be done auto wiht out anyone... I know it can be done with out anyone for deleting at file.
santabruzer
Posted: Tue May 25, 2004 6:17 am Post subject: (No subject)
ok ... iono.. not sure about that example though.. i will try it.. .. he he... do you have yim?