Re: Creating Dropdown Menus From Tables

From: Date: Mon, 20 Sep 2004 12:18:57 +0000
Subject: Re: Creating Dropdown Menus From Tables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197267@lists.php.net to get a copy of this message
On Thu, 16 Sep 2004 13:02:31 +0100 "Harlequin" <michael.mason@arraspeople.co.uk> wrote: > Hi all. > > Hoping this might be relatively easy... > > I'm wondering if I can create a dropdown menu > (<option>ABCDE</option>) by using a select statement and > then populating this using PHP...? Yes. Hint: Do a "foreach" on the result (of the query) then inside the loop, just do an echo "<option>$value</option>"; or something like that. -- - E - copperwalls was here ;)

« previous php.general (#197267) next »