Hey I am having some trouble inserting data into my sql database...really simple stuff...any idea whats wrong??
if ($roomNum <> 0) {
@ $db = mysql_pconnect("acidburn.rit.edu", "gcr-klavis", "govrel");
if (!$db) {
echo "Error: Could not connect to database.";
exit;
}
mysql_select_db("gcr-specialEvents");
$sql = "INSERT INTO requests VALUES ('','$title','$organization','$contact','$phone','$fax','$address','$city','$state','$zip','$email','$dates','$dates','$startTime','$endTime','$setupTime','$roomNum','$roomStyle','$attending','$objective','$eventType','$fee','$feeAmount','$publicized','$parking','$cars','$handicapped','$security','$other','$ref1Name','$ref1Address','$ref1Phone','$ref2Name','$ref2Address,'$ref2Phone','$food','$foodNum','$alcohol','$foodType','$foodNeeds','$overnight','$overnightMax','$overnightMin','$airCond','$smoking','$linen','$checkIn','$checkOut','$early','$earlyWhen','$earlyNum','$late','$lateWhen','$lateNum','$roomSetup','$tables,'$draped','$chairs','$flipChairs','$podiums','$overheadPro','$microphones','$tvVcr','$slidePro','$chalk','$tape','$otherSetup')";
echo $sql;
$result = mysql_query($sql);
}
Thanks