|
Posted by Chris Ramsay on 10/13/12 11:11
On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design
<smarquez@marquez-design.com> wrote:
> Greetings,
>
> Does anyone know how to get a particular option to display in a drop menu?
>
Perhaps, do db query first, then for each option (perhaps as a foreach
or something):
echo "<option name=\"whatever\" value=\"xxxx\"";
if (!(strcmp($required_value, $db_result))) { echo " selected"; }
echo ">";
cheers
[Back to original message]
|