RE: [PHP] Parse error in mysql_query()

From: Date: Mon, 22 Dec 2003 19:07:28 +0000
Subject: RE: [PHP] Parse error in mysql_query()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173177@lists.php.net to get a copy of this message
Hi Matt, I put this right above like 871: print "<br><br>$_POST[domainregister_domain$i]<br><br>"; So now that "print" line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the fields are the same, just with different numbers at the end: ex: domainregister_domain1 domainregister_domain2 Those field names are generated by PHP for the form, and now I'm doing the page to process that form. Would doing $_POST['domainregister_domain'][$i] get the correct value from my "domainregister_domain1" field if $i=1? Thanks, Tyler Thanks, Tyler On Mon, 2003-12-22 at 12:47, Matt Matijevich wrote: > [snip] > Sorry, should have mentioned that I tried quoting them already. That > gives a T_VARIABLES parse error. > > Thanks for the reply, > Tyler > [/snip] > > What happens if you comment out the mysql statement and just echo the > variables? > > echo $_POST[domainregister_domain$i] > $_POST[domainregister_type$i]....;

« previous php.general (#173177) next »