I have the following code included in a PHP page (using include('blah')😉 The page has other code on it to, and when I include the following code, I get parse errors for the rest of the page (after the include). If I don't include it, it works perfectly. Can you guys see if there is anything wrong with this code? ;-)
<?php
$date_joined = date("m/d/y");
$insert_info = "INSERT INTO geninfo (contact_name, company_name, email, phone_number, fax_number, toll_free, address, city, state, zip_code, listing, site_url, payment, date_joined) VALUES('$contact_name', '$company_name', '$email', '$phone_number', '$fax_number', '$toll_free', '$address', '$city', '$state', '$zip_code', '$listing', '$site_url', '$payment', '$date_joined')";
$info_result = mysql_query($insert_info);
$id_number = mysql_insert_id($insert_info);
$insert_amen = "INSERT INTO amenities (id, tentsites, fullhookup, tvhookup, showers, laundry, store, pool, waterfront, rentals, dump, phone, activies, playground, recroom, overnighters, fishing, boating, computer, pets, other) VALUES('$id_number', '$tentsites', '$fullhookup', '$tvhookup', '$showers', '$laundry', '$store', '$pool', '$waterfront', '$rentals', '$dump', '$phone', '$activies', '$playground', '$recroom', '$overnighters', '$fishing', '$boating', '$computer', '$pets', '$other');
$amen_result = mysql_query($insert_amen);
?>