Well, you could have a field named "time" in your db, and then put this script on the page where you want to execute the event.
## connection here ##
$query = "select * from events";
$sql = mysql_query($query) or die(mysql_error());
$data = mysql_fetch_array($sql));
if($data['time'] < time())
{
# execution #
}