RE: [PHP] Parse error in mysql_query()

From: Date: Mon, 22 Dec 2003 18:30:21 +0000
Subject: RE: [PHP] Parse error in mysql_query()
Groups: php.general 
Request: Send a blank email to php-general+get-173168@lists.php.net to get a copy of this message
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

« previous php.general (#173168) next »