Jump to content
php.lv forumi

FT3

Recommended Posts

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']);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...