how we select data from database in drapdowlist and then delete the date(thrugh php cod)

diafol commented: how about you show us your code so far? Gimme posts are not what we want. -3

Recommended Answers

All 3 Replies

Code for generating drop down list as follows

<?php 
$sql="select eid,ename from emp";
$result = mysql_query($sql);
echo "<select name="s">";
while($row = mysql_fetch_array($result))
  {
  ?>
  <option value="<?php echo $row['eid']; ?>" > <?php echo $row['ename'];?> </option>
  
  <?php
  }

?>

Clarification necessary as to whether date is any column name in the mysql table.

remember to close the select list:

</select>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.