Alıntı
$saat=$_POST[saat];
$saat=($saat*60)*60;
mysql_query("Update xxx set zaman='$saat' where uyeid = '$_REQUEST[id]'");
Şu şekilde yazdırıyorum.
Alıntı
<p class="metin" id="sure"></p>
<script type="text/javascript">v=new Date();var bx0=document.getElementById('sure');function tbx0(){n=new Date();s=<?=$a[zaman];?> -Math.round((n.getTime()-v.getTime())/1000.);m=0;h=0;d=0;o="";if(s<0){bx0.innerHTML='---';document.location=document.location;}else{if(s>5 9){m=Math.floor(s/60); s=s-m*60}if(m>59){h=Math.floor(m/60);m=m-h*60}if(h>23){d=Math.floor(h/24);h=h-d*24} if(s<10){s="0"+s}if(m<10){m="0"+m} if(d>1){o=d+" Günler ";}else if(d>0){o=d+" Gün "}bx0.innerHTML=" "+o+h+":"+m+":"+s+'';window.setTimeout("tbx0();",9 99);}}tbx0();</script>
Şu şekildede geriye saydırıyorum.
Tabloya o anki zamanı eklerken yardımcı olabilir misiniz?