Variables from Flash to PHP to mySQL acting weird?

I am making a high score script. A name variable and score variable are taken from flash and put into php then inserted into a table. The score works fine but for the name column it always just comes up as ‘<TEXTFORMAT LEA’ when I check the table in phpMyAdmin. Here is the code I am using for the query:

mysql_query("INSERT INTO `highscores` ( `id` , `name` , `score` )
VALUES (
NULL , '$name', '$score'
)");

Anyone know what might be going wrong?

Thanks. :smiley: