"Invalid argument supplied for foreach()" indicates that your '$mapname' is not an array, which in turn implies that your SELECT is returning with an empty set. Have you tried echoing your SELECT statement and running it against your database to see what happens?
Take it easy,
Dan
Will-code-PHP-for-Athlons-and-powerbooks
"If Darl McBride was in charge, he'd probably make marriage unconstitutional too,
since clearly it de-emphasizes the commercial nature of normal human interaction, and
is a major impediment to the commercial growth of prostitution."
|