... or even shorter (since php 4.1.0):
function init_auth_list()
{
print "<select name=author> <option value=\"\">select the name of the
author</option\>";
$query="select name from author order by name";
$result=pg_exec($GLOBALS["db"],$query);
while ($row = pg_fetch_row($result))
{
print "<option name=\"".$row[0]."\">$row[0]</option>";
}
print "</select>";
}-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

