//create the select box
echo "<select name=referrers size=1>";
echo "<option value="">Please choose</option>";
//create the sql query for the data
$sql = "select clientname from tableX";
//execute the query
$result = mysql_query($sql, $conn) or die "couldn't take to database!");
//print the results to the options
while $row = mysql_fetch_array($result){
$name= $row["clientname"];
echo "<option value=$name>$name</option>";
}
//close the select box
echo "</select>";
hth
bastien