Forum Moderators: coopster
$rzones = "";
for($i=0;$i<sizeof($zones);$i++)
{
if($rzones=="")
$rzones = $zones[$i];
else
$rzones = $rzones.", ".$zones[$i];
}
$prizes = "$prize1 $prize2 $prize3 $prize4 $prize5"; OpenTable(); It is on the Query line, if you find it please let me know. Thank you kindly. [1][edited by: jatar_k at 5:48 pm (utc) on July 17, 2004]
$query = "insert into nuke_quest_database (Class,Race,Level,Start_Zone,Start_NPC,Directions, Description,Walkthrough,End_NPC,Zones,Rewards,Difficulty,Time,user) values ('". $Class."','". $Race."','". $Level."','". $Zone."','". $start_npc."','". $directions."','". $description."','". $walkthrough."','". $end_npc."','". $rzones."','". $prizes."','". $difficulty."','". $time."','". $cookie."')";
mysql_query($query);
print "The Quest has been submitted.";
CloseTable();
include("footer.php");
?>
[edit reason] fixed sidescroll [/edit]
Either the file is missing, or it is a parse error (because you've missed out a ; - i.e. a syntax error). It seems puzzling that it is saying both... is line 23 really the query line?
Try stripping out blocks of code and seeing if it will accept the remainder, then you can narrow down where the problem code is (rather than relying only on the line number).