Re: What's wrong with this code?
| From: | Jean-Christian Imbeault | Date: | Mon, 02 Sep 2002 05:01:08 +0000 |
| Subject: | Re: What's wrong with this code? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21513@lists.php.net to get a copy of this message | ||
Shoulder To Shoulder Farm wrote:
mysql_query("INSERT INTO prod VALUES ( 'Name', 'ShortDesc', 'LongDesc', 'PriceOZ', 'PriceLB', 'URLOZ', 'URLLB', 'IMG') VALUES ('$_POST[Name]', '$_POST[ShortDesc]', '$_POST[LongDesc], '$POST[PriceOZ', '$_POST[PriceLB]', '$_POST[URLOZ]', '$_POST[URLLB], '$_POST[IMG]');")Maybe it's a typo but all you $_POST vars are wrong. They should be $_POST["var"] not $_POST[var] as you have them. Jc