RE: [PHP] Parse error in mysql_query()

This is a discussion on RE: [PHP] Parse error in mysql_query() within the PHP General forums, part of the PHP Programming Forums category; Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-22-2003
Tyler Longren
 
Posts: n/a
Default RE: [PHP] Parse error in mysql_query()

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0