> > Thank you, but I´m experienced in PHP, that thing about inserting in databse and getting data etc is clear for me as I wrote in my first post. Only thing I have problem is POST score from the game, because I don´t know what to write in which ajax column in game editor
> ON ajax, select:
> Post to url:
> TAG (you can use on event of contruct2)
> URL (of the php file)
> Data: (the variables to send, like, if you have USERNAME and SCORE)
> method: "POST"
> with this, you will send:
> variableofC2USERNAME to username and VariablescoreonC2 to score on your php
I have folowed your steps but not working. It just change the database column to 0, not reached Score. Name of my variable is score, I have Data column: "points="&Score""
Then php get:
$score = mysql_real_escape_string($_GET['points']);
The database updating works, it change the amount, but to zero, I still think, that It is not posting score correctly
you have to set &score without the ""... and if you use GET, you can't use POST....
GET is working on url like myscript.php?username=mynameinC2&score=8238923
you have to change your variable with POST:
$score = mysql_real_escape_string($_POST['points']);
and for more information, you can see if your php generate some error... let me know if you solve that