echo ''; while($rows = mysql_fetch_array($result, MYSQL_ASSOC)) { echo ''; } i want the option to be field with data dynamically from the database. but now all i get is that the it prints the individual options and their contents. and i dont want it like that.