Living in the past?
Harlequin 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, it is relatively easy, and it is answered in virtualy every PHP book. I recomend you get one.
Some (pseudo) code:
$res = query(select id, name from table); while($row = get_result($res)) { echo "<option value='$row[id]'>$row[name]</option>"; }
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php