hi every one
this is my first post in any forum
i have got an error while inserting a row to mysql
this is my code:
$query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')";
the error shown is:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('','',''' at line 1
thanks in advance