Common SWF questions: In-game scoretable does not display even when it used to, or is stops after only a few names
Problem: Your hi-score table was working, listing and scrolling scores, but now it's not. What happened?
Cause: More than likely a user has put an apostrophe in their name, and this has broken the format of the XML scoretable output.
Solution: Use the code line below when outputting the XML from PHP, to handle special characters.
echo "<xitem xname='".htmlspecialchars(trim($myrow["name"]),ENT_QUOTES)."'>".htmlspecialchars(trim($myrow["score"]))."</xitem>\n"; |