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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -