Jump to content

Help with automatic update of mysql using time()!


dhimok

Recommended Posts

Hey there. I have a question if u might help me

 

I want to update a database record using time as a trigger and I want this to happen automatically in the database thru a php file on the server.

 

 

lets say I have 2 time vars:

 


$now = time();
$expire = 1173697245;

what I want to accomplish is this:

if($now >= $expire) {

mysql_query("UPDATE table SET bla bla ");

}

 

I want this to be triggered autaomatically. How can I do that. How can I set a trigger?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.