Okay after spending long, painful hours trying to put together this registration page, here is my dilema. I have a registration page at www.hoopstart.com/registration.php. This is a form where people will fill it out. I will have the data sent to a php form called customers.php. Everything works except that the fact that I continue to get the error message that the data cannot be inserted.
Can some help me? Here is the code for customers.php
<?php
$RegNo = "";
$FirstName1 = "";
$LastName1 = "";
$Age1 = "";
$Sex1 = "";
$DOB = date("m.d.y");
$ShirtSize1 = "";
$FirstName2 = "";
$LastName2 = "";
$Age2 = "";
$DOB2 = date("m.d.y");
$Sex2 = "Y";
$ShirtSize2 = "";
$FirstName = "";
$LastName = "";
$Address = "";
$City = "";
$State = "";
$Zip = "";
$DayPhone = "";
$EvePhone = "";
$CellPhone = "";
$Other = "";
$Email = "";
$NameCard = "";
$CardNo = "";
$ExpDate = date("m.y");
$CardType = "Y";
$School = "";
$Cost = "0";
$Test = "";
$connection=mysql_connect
("localhost","hoopstar_test","test") or die("Could not connect to the database server");
$db= mysql_select_db("hoopstar_HoopStartRegistration",$connection) or die ("Unable to select database.");
$sql= "INSERT INTO 'hoopstar_HoopStartRegsitration.001'(RegNo,FirstName1,LastName1,Age1,Sex1,DOB,ShirtSize1,FirstName2,LastName2,Age2,
DOB2,Sex2,ShirtSize2,FirstName,LastName,Address,City,State,Zip,DayPhone,EvePhone,CellPhone,Other,Email,
NameCard,CardNo,ExpDate,CardType,School,Cost) VALUES($RegNo,'$FirstName1','$LastName1','$Age1','$Sex1','$DOB',
'$ShirtSize1','$FirstName2','$LastName2','$Age2','$DOB2','$Sex2','$ShirtSize2','$FirstName','$LastName','$Address',
'$City','$State','$Zip','$DayPhone','$EvePhone','$CellPhone','$Other','$Email','$NameCard', '$CardNo','$ExpDate',
'$CardType','$School',$Cost)";
$sql_result = mysql_query($sql,$connection) or die ('Could not insert data');
echo('Data inserted successfully.');
mysql_close($connection)
?>