Jump to content

MY ajax PHP Code..


Gayner

Recommended Posts

function MakeRequest()
{
  var xmlHttp = getXMLHttp();

  xmlHttp.onreadystatechange = function()
  {
    if(xmlHttp.readyState == 4)
    {
      HandleResponse(xmlHttp.responseText);
    }
  }

  xmlHttp.open("GET", "rofl.php", true);
  xmlHttp.send(null);
}

 

and rofl.php is

:

 

mysql_query("UPDATE ibf_members SET points = points+0.25 WHERE id={$ibforums->member["id"]} LIMIT 1");

 

So my users get 0.25 Forum Cash each time rofl.php is called.

 

But i want my javascript to beable to hide that "rofl.php" so my users cant view source and find it and just keepr efreshing :P

Link to comment
https://forums.phpfreaks.com/topic/174025-my-ajax-php-code/
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.