RE: [PHP] Parse error in mysql_query()
| From: | Tyler Longren | Date: | Mon, 22 Dec 2003 18:34:27 +0000 |
| Subject: | RE: [PHP] Parse error in mysql_query() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173169@lists.php.net to get a copy of this message | ||
Sorry, should have mentioned that I tried quoting them already. That
gives a T_VARIABLES parse error.
Thanks for the reply,
Tyler
On Mon, 2003-12-22 at 12:30, Sam Masiello wrote:
> Perhaps it doesn't like the fact that you don't have quotes around your
> array keys?
>
> --Sam
>
>
> Tyler Longren wrote:
> > Error:
> > Parse error: parse error, expecting `']'' in
> > /usr/local/apache/htdocs/UP/index.php on line 871
> >
> > Line 871:
> > mysql_query("INSERT INTO domainregistrations
> > (domain,type,years,price) VALUES
> >
>
> ('$_POST[domainregister_domain$i]','$_POST[domainregister_type$i]','$_PO
> ST[domainregister_years$i]','$_POST[domainregister_price$i]')");
> >
> > Anyone know why that parse error is happening? I can't find a
> > missing "]" anywhere.
> >
> > Any help would be greatly appreciated.
> >
> > Thanks,
> > Tyler Longren