Jump to content

Retrieve Names


Dysan

Recommended Posts

you mean like this?

 

<?php
// Connect To Database

$query = mysql_query("SELECT name FROM table");

echo "<select multiple name=names>\n";

while($row = mysql_fetch_array($query)){
echo "<option value='". $row['name'] ."'>". $row['name'] ."</option>\n";
}

echo "</select>\n";

?>

Link to comment
https://forums.phpfreaks.com/topic/83928-retrieve-names/#findComment-427145
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.