Okay so I’m doing my website again and I want to edit or update the values of the rows so I went to phpmyadmin and check what is the code for updating values so I have this:
UPDATE `database`.`table` SET `title` = 'My Title', `message` = 'My Message' WHERE `table`.`id` =2 LIMIT 1 ;
So I tried rephrasing it like this on PHP:
mysql_query("UPDATE posts SET title = '$title', message = '$message' WHERE id='$id' LIMIT 1");
But when I tried checking my table, it doesn’t change.
By the way, there are no errors showing.
Try:
mysql_query(“UPDATE posts SET title = ‘” . $title . “‘ message = ‘” . $message . “‘ WHERE id =2 LIMIT 1”);
What version of PHP are you using?