Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 refreshing mysql php page
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
santabruzer




PostPosted: Sat May 22, 2004 6:05 pm   Post subject: refreshing mysql php page

Hey guys.. haven't been here for ages Smile.. 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 Smile.. plz help
Sponsor
Sponsor
Sponsor
sponsor
Amailer




PostPosted: 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




PostPosted: Sun May 23, 2004 11:01 pm   Post subject: (No subject)

no .. Sad.. 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




PostPosted: 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




PostPosted: Tue May 25, 2004 6:17 am   Post subject: (No subject)

ok ... iono.. not sure about that example though.. i will try it.. Smile.. he he... do you have yim?
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: