Hi All
Could anyone help me with the following line of sql code
$sql_text = "insert into tblPeaksBagged values ('',$SummitNo,1,'$POST[Sum_Bag_Date]','$POST[Sum_Bag_Accomp]','$POST[Sum_Bag_Weather]','$POST[Sum_Bag_Comments]')";
I am having problems somewhere around the area of the variable $SummitNo
and the following 1
If I put them into inverted comma's
$sql_text = "insert into tblPeaksBagged values ('','$SummitNo','1','$POST[Sum_Bag_Date]','$POST[Sum_Bag_Accomp]','$POST[Sum_Bag_Weather]','$POST[Sum_Bag_Comments]')";
everything except $SummitNo is entered into the database
if I leave the inverted commas
as shown at first
the $summitNo variable is entered into the db and so is the 1, but nothing else.
I am sure it is just a problem with my syntax, hope someone can help.
Thanks
Jamie