Re: multiple selects into mysql database

From: Date: Thu, 24 Aug 2000 18:11:38 +0000
Subject: Re: multiple selects into mysql database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13478@lists.php.net to get a copy of this message
Ok there could be several problems.... first if your code is in a function and the variable being passed into the script is a form variable then you must use the global $frmVar; to use that variable from the previous script... or use the GLOBALS array.. see the php documentation about that. no outside variables are available from functions... the second problem I see... but don't have time to elaborate on is this bit of code >// do work > for($i=0; $i < count($disciplineOption); $i++) > { > { > print("<option value=\"$disciplineOption\" "); > } > print(">{$disciplineOption[$i]}\n"); > it LOOKS very suspicious... especially the value=\"$disciplineOption\" I don't have time to really check it, but it doesn't look right at first sight. Hope this helps you... TaoX

« previous php.general (#13478) next »