bazz
07-26-2006, 03:26 PM
Having entered data to a form and then submitted it, the form script re-runs with the 'submitToDb sub-routine.
I want this sub routine fristly, to write to the Db, creating a new record and adding the form data.
This, however, doesn't seem to do it so can you please help. BTW, I am (trying), this in perl.
my $sql = "INSERT INTO Account ( `AccID` , `User` , `Password` , `Email` , `First_Name` , `Last_Name` , `My_Team_Name` , `League_Name` , `Budget` , `Rider_1_Name` , `Rider_1_Points` , `Rider_2_Name` , `Rider_2_Points` , `Team` , `Team_Points` , `Tyre` , `Tyre_Points` , `First_Retire` , `First_Retire_Points` , `Pole` , `Pole_Points` , `Total_Points` )
VALUES (
NULL , '', '', 'me@mydomain,com', '', '', '', '', '45', '', '0', '', '0', '', '0', '', '0', '', '0', '', '0', '0'
)";
Bazz
I want this sub routine fristly, to write to the Db, creating a new record and adding the form data.
This, however, doesn't seem to do it so can you please help. BTW, I am (trying), this in perl.
my $sql = "INSERT INTO Account ( `AccID` , `User` , `Password` , `Email` , `First_Name` , `Last_Name` , `My_Team_Name` , `League_Name` , `Budget` , `Rider_1_Name` , `Rider_1_Points` , `Rider_2_Name` , `Rider_2_Points` , `Team` , `Team_Points` , `Tyre` , `Tyre_Points` , `First_Retire` , `First_Retire_Points` , `Pole` , `Pole_Points` , `Total_Points` )
VALUES (
NULL , '', '', 'me@mydomain,com', '', '', '', '', '45', '', '0', '', '0', '', '0', '', '0', '', '0', '', '0', '0'
)";
Bazz