Re: multiple & array problem

From: Date: Sun, 09 Sep 2001 13:37:04 +0000
Subject: Re: multiple & array problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66599@lists.php.net to get a copy of this message
hello! > option1|option2|option3....etc > i used implode function. > > But how to make in other way ! I mean to get result from Mysql and form to s > elect it > > I use this .... and i have an array ... but what next ? > $wyp = explode("|", $wyposazenie); > I haven't used explode for a while, but I believe it creates an array? you want to turn the array into an html select box? that would be this... <form> <select> <? foreach($wyp as $wyp_value) { print <<<HTML <option value="$wyp_value">$wyp_value</option> HTML; } ?> </select> </form> have fun! I hope I understood the question. =) Cheers, Bard > > > Thank you for your help. > > > Teqilaman -- teqilaman@wp.pl > > > -- -- NOWPRINT. NOWPRINT. Clemclone, back to the shadows again. - The Firesign Theater

« previous php.general (#66599) next »