Sure! <?php $x = 'some value';
echo '<select name="uname">';
$sqlu = "SELECT id,user,name ';
$sqlu .= "FROM users ';
$sqlu .= "ORDER BY user ASC";
$name_result = mysql_query($sqlu);
while($rowu=mysql_fetch_array($name_result)){
echo '<option value="' . $rowu[user] . '"';
if ( $x = $rowu[user] )
echo 'SELECT ';
echo '>';
echo $rowu[user];
echo '</option>' . "\n";
}
echo </select>
?>
Walter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

