Jump to content

Extract Into Select


samXR
 Share

Recommended Posts

hey guys..i wanna extract data from the database and put it in the select column..and also where do i put the codes..is it in a new php file or in editor.php.....but i juz could not figure it out..needing help here..thanks...::::::::::::::::::::::::editor.php:::::::::::::::::::::::::::::::::::::<table border="3"> <tr> <td style="background-color:#6495ED"><b>Selection Criteria</b></td> </tr> <tr> <td><form action="dbm.php" method="post"> Select a Database Name :</br></br> <select> <option> </option> <option> </option> </select> <input type="submit" value="Go"/ ></form> <form action="dbm2.php" method="post"> Select a Table :</br></br> <select> <option> </option> <option> </option> </select> <input type="submit" value="Go"/ ></form><form action="dbm3.php" method="post"> Select a search field, then enter a search phrase (enter nothing to retrieve all records) :</br></br> <select> <option> </option> <option> </option> </select> <select> <option> </option> <option> </option> </select> <input type="text" /> <input type="submit" value="Result"/> </form> </td> </tr>

Link to comment
Share on other sites

something like this?

$query  = "SELECT whateverfeild FROM whatevertable";$result = mysql_query($query);while($row = mysql_fetch_array($result, MYSQL_ASSOC)){	echo "<option value=".$row['whateverfeild'].">".$row['whateverfeild']."</option>\n";}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...