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

Is array empty php?

0 Answers  


Can I learn php in a month?

0 Answers  


How can we automatically escape incoming data?

0 Answers  


Write a program to display a table of any given number?

0 Answers  


What are the advantages of indexes in php?

0 Answers  


Does jwt protect against csrf?

0 Answers  


Which function Returns the time of sunrise for a given day / location in PHP.

0 Answers  


Is php easier than javascript?

0 Answers  


What is the scope of a variable defined outside a function?

0 Answers  


What is the difference between require and include in php?

0 Answers  


What is the use of explode() function?

0 Answers  


Explain what is the difference between $var and $$var?

0 Answers  


Categories