Re: SQL Insert INTO question
| From: | El Bekko | Date: | Thu, 08 Dec 2005 11:33:51 +0000 |
| Subject: | Re: SQL Insert INTO question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40799@lists.php.net to get a copy of this message | ||
geekgirl1 wrote:
First time poster..... This is the problem. I want to add the value of $_POST[review] to the reviews table where the unique id from the reviews table equals the review id on my form. The statement below does not work. Should I use UPDATE instead? "INSERT INTO reviews (review_txt) VALUES ('$_POST[review]') WHERE review_id = $id"; Marian"INSERT INTO reviews (review_txt) VALUES ('$_POST[\'review\']') WHERE review_id = '$id'"; There, now it should work :)