Jump to content

gerit99

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by gerit99

  1. Is it possible to search all MP3 files within a folder and put them in a big array to play them nicely on a browser site?
  2. gerit99

    Ajax

    posTop works too, somehow. That's how i have been scripting it. I also need to paste the important pieces in my script
  3. gerit99

    Ajax

    The problem is, there are no errors. Each keypress triggers this: var serverRequest=new XMLHttpRequest();function updatePlayerPosition(){serverRequest.open("GET","updatePositions.php?player=1&posTop="+document.getElementById('player').style.posTop+"&posLeft="+document.getElementById('player').style.posTop,true);serverRequest.send();} updatePositions.php <?PHP$player = $_GET["player"];$posTop = $_GET["posTop"];$posLeft = $_GET["posLeft"];mysql_query("UPDATE userplayers SET posTop=".$posTop.",posLeft=".$posLeft." WHERE playerID=".$player."");?> And still I see this: posTop | posLeft 300 | 300
  4. gerit99

    Ajax

    I've made a script but it doesn't work. I've tried alot of things but it doesn't work, and since I'm at school i can't show my script. I've used _GET to read the info, and then i updated it.
  5. gerit99

    Ajax

    Really? Wow... I'll take a look on how to use it.
  6. gerit99

    Ajax

    My idea is to create a game with PHP,Javascipt and AJAX. But I have some trouble with AJAX. I've read W3schools.com and other pages, but i couldn't figure how I could change a database each time you click a button.<---------- My character btw
×
×
  • Create New...