Sveiki te tada lieta , gribeju jautat ka var apvienot šos divus kodus , lai pec js refresh , taisitos update ?
<script>
<!--
//
var seconds=20
document.counter.d2.value='10'
function display(){
seconds-=1
if (seconds<=-1){
milisec=0
seconds+=1
document.location.href = '<?echo "$http/surfing.php?uid=$uid"; ?>';
}
else
document.counter.d2.value=seconds
setTimeout("display()",1000)
}
display()
-->
</script>
mysql_query("DELETE FROM `surfing` WHERE `surfcoins` = '0' ");
mysql_query("UPDATE `surfing` SET `surfcoins` = '$amount' WHERE `homepage` = '$homepage' ");
mysql_query("UPDATE `members` SET coins = '$amount2' WHERE ID = ".$_SESSION['wID']);