darkpunkcalob
New Member
- Messages
- 22
- Reaction score
- 0
- Points
- 0
I am normally a "hack at it till it starts working and never ask anyone for help" kind of guy, but i just dont get this
What is this code would cause there to be no error report, and yet for the update to not take effect?
(Assume the connection was already made and the POST values are correct, I am only posting the segment I am having issues with)
What is this code would cause there to be no error report, and yet for the update to not take effect?
(Assume the connection was already made and the POST values are correct, I am only posting the segment I am having issues with)
PHP:
$date = $_POST['date'];
$title = $_POST['title'];
$author = $_POST['author'];
$content = $_POST['content'];
$link = $_POST['content'];
$qupdate = "UPDATE $table
SET title = '$title', author = '$author', content = '$content', attachments = '$link'
WHERE date = '$date' AND title = '$title'";
mysql_query($qupdate) or die("Failed: " . mysql_error());
echo "[" . $title . "] updated for [" . $table . "]!";