I am unable to insert integer data from insert statement.
$value = $_POST[from];
$query = mysql_query("INSERT INTO trip(tripid,from)VALUES(NULL, $value)");
Here from is integer value, but i am getting syntax error as :
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)VALUES(NULL, 1)'` at line 1.