Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Make a "dynamic drop down list" with using only PHP,HTML
and MySQL..

Answers were Sorted based on User's Feedback



Make a "dynamic drop down list" with using only PHP,HTML and MySQL....

Answer / koushikgraj

Using post back or ajax functionality we can achieve this

Is This Answer Correct ?    6 Yes 2 No

Make a "dynamic drop down list" with using only PHP,HTML and MySQL....

Answer / sasmitamohanta

<select name="name">
<option value="">Select Name</option>
<?
// make connection to data base
mysql_connect('localhost','root','') ;

//select database
mysql_select_db('mail');

//select all da from 'table' say it ve two colom Id and Name
$sql=mysql_query("select * from table");

//select one by one row data s
while($r=mysql_assoc($sql))
{?>
<option value="<?=$r['Id'];?>"><?=$r['Name'];?></option>
<?}?>

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More PHP Interview Questions

What the limitation of header() function in php?

0 Answers  


what is array_search() in php?

2 Answers  


What is a query in a database?

0 Answers  


What is asort php?

0 Answers  


What is xss in php?

0 Answers  


Is PHP an open source software?

0 Answers  


Explain php parameterized functions.

0 Answers  


Who is the father of php?

0 Answers  


Where are sessions stored php?

0 Answers  


Is php developer in demand?

0 Answers  


How do I make a reset button in html?

0 Answers  


What is serialization in php?

0 Answers  


Categories