You have double quotes within double quotes. Look at this example:
echo "The teacher said, "Students, take your seats" as he entered the classroom.";
But the first double quote and the last double quote are what PHP considers what it needs to echo.
echo "everything between quotes";
But if you add double quotes within double quotes, PHP thinks that it should echo
echo "The teacher said,"
that, but then there's more, and the rest causes parse errors. In this case, you'd need to escape the double quotes with a /, but in your case, you need to either use single quotes or concatenate (add on to) the query. Here's how you'd do it:
$result_items = mysql_query("SELECT id, img FROM rpg_items WHERE user_id='0' AND map_name='" . $_SESSION["user"]["map"] . "' AND map_xpos='" . $_SESSION["user"]["map_x"] . "' AND map_ypos='" . $_SESSION["user"]["map_y"] . "' ORDER BY id");
Cgraz