Re: Re: What's wrong with this code?

From: Date: Mon, 02 Sep 2002 14:57:29 +0000
Subject: Re: Re: What's wrong with this code?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-21518@lists.php.net to get a copy of this message
Sorry all, my mail program has been sending messages to the sender. Sorry...Taj Jean-Christian Imbeault wrote:
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


« previous php.db (#21518) next »