İşte kaynağına bir bağlantı olduğunu: https://docs.google.com/document/pub?id=1VxiZbysGLVx71ni0biGm2NbhhSCkPZmGWng-ik7IHNQ
<?php
$user1 = mysql_query("SELECT * FROM `users` WHERE `id`='$user->id'");
while($user = mysql_fetch_object($user1)){
$data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`start`) AS `start`,0 FROM `users` WHERE `id`='$user->id'");
$data1 = mysql_fetch_object($data2);
$date = $user->howlong;
$timedif1 = $data1->start-3600+$date-time();
if($data1->start + $date > time()){
list($h,$min,$sec)=explode(":",date("H:i:s",$timedif1));
$countdown = $data1->start+$date-time();
}
}
?>
Sen bitirmek için <?php echo $countdown ?>
zaman var!
Soru: How to create this script, into PHP function?