Make a "dynamic drop down list" with using only PHP,HTML
and MySQL..
Answers were Sorted based on User's Feedback
Answer / koushikgraj
Using post back or ajax functionality we can achieve this
| Is This Answer Correct ? | 6 Yes | 2 No |
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 |
•How can we submit a form without a submit button
What are the __construct() and __destruct() methods in a php class?
Is a number php?
what is DDL and DML?
How to get the DNS servers of a domain name?
Which is faster for or foreach php?
What are the different ways we can retrive the mysql results using php ? Explain each
Tell me how to retrieve a cookie value?
Explain me is it possible to destroy a cookie?
What are the uses of explode() function?
Define object-oriented methodology?
Is strcmp case sensitive?