Just to point out the error, I know it's already been fixed but you can tell right away from the difference in the color of the codes.
$result = mysql_query("SELECT * FROM ".$prefix."useritems WHERE owner = '$loggedinname');
That line is missing a double quote " which messes everything after it up.
|