i am getting an error near the last line of this query.. at the very end of the values near the last Quotes
$code . "'") or die (mysql_error());
$sql = mysql_query("INSERT INTO attendees (id, regtime, host, ip, eventid, age, terms, firstname, lastname, clanname, alias, address1, address2, city, state, zip, country, hphone, wphone, cphone, IMcontact, email, arrival, airline, party, hotel, seat, clanid, code) VALUES ('0', '" . $regtime . "', '" . $host . "', '" . $ip . "', '" . $eventid . "', '" . $dob . "', '" . $terms . "', '" . $usrVars['firstname'] . "', '" . $usrVars['lastname'] . "', '" . $clanname . "', '" . $usrVars['alias'] . "', '" . $usrVars['address1'] . "', '" . $usrVars['address2']. "', '" . $usrVars['city'] . "', '" . $usrVars['state'] ."', '" . $usrVars['zip'] . "', '" . $usrVars['country'] . "', '" . $usrVars['hphone'] . "', '" . $usrVars['wphone'] . "', '" . $usrVars['cphone'] . "', '" . $usrVars['IMcontact'] . "', '" . $usrVars['email'] . "', '" . $usrVars['arrival'] . "', '" . $usrVars['airline'] . "', '" . $usrVars['party'] . "' , '" . $usrVars['hotel'] . "', '" . $seat . "', '" . $clanid . "', '" . $code . "'") or die (mysql_error());
I Greatly appreciate anyones help on this.. its diving me insane
thanks!