I can't get it to read my variables

Ok, take a look at this script I have. I am retrieving data with php and mysql and putting them into variables: thisHereX, thisHerey, and thisHereMap. If I were to do trace on any on of this, if gives me what corresponds with the database; giving me the right variables. But if I were to use it like this:

char = {xtile:thisHereX, ytile:thisHereY, speed:3};

It completely slows down and tells me to abort before it crashes, with a pop up window.

Yet if I were type in :

char = {xtile:5, ytile:5, speed:3};

It returns fine and plays just as normal, why is this?!

I will post more code if what I have isn’t enough info. Thanks.