am using this code for selecting multiple lines but in datbase only word "arrary" is getting into the field instead of the selected list
p><b>Enter the Function:<br>
<select size="1" name="function[]" multiple>
<?php
$query="SELECT DISTINCT function FROM functions order by function";
$result=mysql_query("$query");
while ($row=mysql_fetch_array($result))
{
$function=$row["function"];
echo "<option value='$function'>$function</option>";
}
?>
</select>