FT3 Posted August 19, 2011 Report Share Posted August 19, 2011 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']); Quote Link to comment Share on other sites More sharing options...
rebuilder Posted August 19, 2011 Report Share Posted August 19, 2011 ajax ;) Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 20, 2011 Author Report Share Posted August 20, 2011 (edited) izdomaju taisisu ar time() Edited August 20, 2011 by FT3 Quote Link to comment Share on other sites More sharing options...
briedis Posted August 20, 2011 Report Share Posted August 20, 2011 izdomaju taisisu ar time() Wut? Time() atgriež unix timestampu. Kāds te tam sakars vispār? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 20, 2011 Report Share Posted August 20, 2011 Es jau varu iedomāties kas beigās iznāks. :D Ev, a kāpēc šitas nestrāda? document.write(time()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.