populate bootstrap dropdawn, php,mysql -
i need populate dropdown data mysql database, code
maker: <br> <select name="maker" > <?php $sql="select name makers"; $query=mysql_query($sql); while($row=mysql_fetch_array($query)){ ?> <option value="<?php echo $row["name"] ?>"><?php echo $row["name"] ?></option> <?php } ?> </select> <br>
and need change design , make little nicer using bootstrap dropdown, don't know how connect code bootstrap code dropdown
to use bootstrap-styled selects, add form-control
class <select>
:
<select name="maker" class="form-control" >
Comments
Post a Comment