Home | Web Design | App / Game development | Flash | Flash Games | Graphic Illustration | Technical Illustration | Contact | Site Map    Twitter
  Galaxy Graphics Limited

Technical InformationCommon 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";

Site content Copyright © 2001-2014 Galaxy Graphics Limited. | Privacy Policy | Terms of use