Hey troublesum, thank you very much for your support.
But I have only one last question that probably will solve my problem...
I managed to return the AJAX.LastData, but I'm returning "<\br>".
I have a database with 3 Int Values in the table: the id(AutoIncrement), int nameIsOk and int nameIsNotOk, that I'm correctly filling with the values 1 (if Name is ok) and 2 (if Name isn't ok).
I want to get the NameIsOk int value and print it in my GameScreen, but what I'm getting in the text box is a "<\br>". And if I try to print it from a Global Number Variable it gets "NaN" (wich I think means Not a Number).
What I'm doing in the code is the following:
// Retrieving data from database
$sql="SELECT * FROM nameIsOk ORDER BY nameIsOk DESC LIMIT 05";
I know that probably is missing some coding and probably that the "$sql=" code is wrong, but I don't know the sintax of PHP, I only know some programming in Java and C++...
If you can help me with this last thing, I'll be a lot grateful!
Thank you again for your attention and support.