Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Problem with mySQL "update" query.
Well. This is the second time I'm posting this... For some reason when I looked at the board today my post wasn't there. This has happened twice before also... I don't know why.
Anyway, on to the question! I have been having trouble with the mySQL query "UPDATE." I am getting an error if I have it give me a die() message. Here is the query:[code]mysql_query("UPDATE news SET title = '$title', name = '$name', date = '$date', content = '$content' WHERE title = '$get_title'");[/code]The connection is fine because in the same file, but a different loop, this query works:[code]$rows = mysql_query("SELECT * FROM news WHERE title = '$get_title'");[/code]
Am I getting something wrong with the syntax of the "UPDATE" query? I've looked on various sites about this and found nothing. Thanks for the help, baby.
0 · ·