I have an item id on my query string as follows:
script.php?id=5
I am trying to write that value into my database along with other form values as follows:
$query = "insert into reviews values (null,'".$id."','".$comments."','".$username."','".$location."')";
Everything goes fine except the second column in the database is left blank and the $id is not added?
How can I take the $id variable from the query string and make sure that value passes into the insert statement?