Re: Parse error in mysql_query()

From: Date: Mon, 22 Dec 2003 18:51:50 +0000
Subject: Re: Parse error in mysql_query()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173174@lists.php.net to get a copy of this message
Tyler Longren wrote:
Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 ('$_POST[domainregister_domain$i]',
If you're going to be creating array keys like that, break out of the string to do it. ('" . $_POST['domainregister_domain' . $i] . "', ... Having a key like that kind of begs the question of why you're not just using $_POST['domainregister_domain'][$i], though... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#173174) next »