I have this SQL query:
mysql_query("INSERT INTO Messages (MessBody,Subject,Date,StaffID,AppID)
VALUES ('Your application's status has been changed to ".$_POST['offer']."','Application Status Changed',NOW(),".$_SESSION['StaffUser'].",".$_SESSION['AppID'].")");
The variable $_POST['offer'] is not working. I think is the way I append it in the text. I tried several different ways but none is working. If I replace the variable with text, then the record will be added into the database though.
I know is something silly, but I can't figure it out. I'm a bit confused, to be honest when to use single quotes and when double, so that might be another reason, why I can't figure it out.