Jump to content

Is this possible??


Gayner

Recommended Posts

What exactly are you wanting to do?  Could you be more clear?

YEa sorry ok here:

 

if(iswon){
if(isplayer){
playerwins[level]++;
playerstarts=true;
writetext(3);
jsvar = <?php echo mysql_query("UPDATE ibf_members SET points = points+0.25 WHERE id={$ibforums->member["id"]} LIMIT 1"); ?>;
document.write(jsvar);
}else{
pcwins[level]++;
playerstarts=false;
writetext(2);
}}

 

See how i try to that PHP? But that query runs EACH TIME I refresh page!! I only want it to run when the javascript iswon function is ran.. HELP! lol

Link to comment
https://forums.phpfreaks.com/topic/173252-is-this-possible/#findComment-913255
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.