briintex1
05-03-2008, 07:35 AM
Hello,
I was wondering if you could tell me why this statement is not inserting information into a database?
//$sql="INSERT INTO my_table (Number, Type, Panel, Sys) VALUES('$_POST[s_number]','$_POST[c_type]','$_POST[b_panel]','$_POST[sys]')";
$sql="INSERT INTO my_table (Number, Type, Panel, Sys) VALUES('1','2', '3','4')";
I put the commented line there because that was my orginal line of code and I added the second line to see if would add it but neither one of the lines add the information to the db. If need be I can post more code.
Thanks
I was wondering if you could tell me why this statement is not inserting information into a database?
//$sql="INSERT INTO my_table (Number, Type, Panel, Sys) VALUES('$_POST[s_number]','$_POST[c_type]','$_POST[b_panel]','$_POST[sys]')";
$sql="INSERT INTO my_table (Number, Type, Panel, Sys) VALUES('1','2', '3','4')";
I put the commented line there because that was my orginal line of code and I added the second line to see if would add it but neither one of the lines add the information to the db. If need be I can post more code.
Thanks