This is a discussion on RE: [PHP] Parse error in mysql_query() within the PHP General forums, part of the PHP Programming Forums category; Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |