So, should i have built it like this:
if( mysql_query("INSERT INTO gmradapply2009 (fullname, email, companyname, companywebsite, adspace, length, howlong, adcreation, adtype, addons)
VALUES ('$fullname', '$email', '$companyname', '$companywebsite', '$adspace', '$length', '$howlong', '$adcreation', '$adtype', '$addons')") === FALSE ) {
die('Error: ' . mysql_error());
}
echo "1 record added";
Or do I need the repetitive code:
mysql_query("INSERT INTO gmradapply2009 (fullname, email, companyname, companywebsite, adspace, length, howlong, adcreation, adtype, addons)
VALUES ('$fullname', '$email', '$companyname', '$companywebsite', '$adspace', '$length', '$howlong', '$adcreation', '$adtype', '$addons')");
if( mysql_query("INSERT INTO gmradapply2009 (fullname, email, companyname, companywebsite, adspace, length, howlong, adcreation, adtype, addons)
VALUES ('$fullname', '$email', '$companyname', '$companywebsite', '$adspace', '$length', '$howlong', '$adcreation', '$adtype', '$addons')") === FALSE ) {
die('Error: ' . mysql_error());
}
echo "1 record added";
Just curious...but either way, the latter worked...THANKS SO MUCH! You have no idea how frustrated I was with this!🙂🙂🙂