OK I have a get style website where I have certain variables stored in the url such as the Username. I'm trying to make a news/commenting system, but for some reason the news will not update, due to the query being messed up and I'm not sure how to go about it.
Anyway, the query is...
$query = "UPDATE news_data SET Author=".$_GET['User'].", Date='$Date', Title='$Array[Title]', News_content='$Array[News_content]' WHERE news_id = '$news_id'";
The Author is obviously the username and I have tried it with GET, just the variable and the array method. The date is being taken from a variable which stores the value on the page. Title is being passed from a text box and news content is being passed from a text area.
What am I doing wrong? Please help. 🙁