What I'm trying to do is make a script that when you select some's name from a select box it will display there information on the page.
The code I'm using for the select box fallows:
print "<table border=0>\n";
print "<tr><td>Display information on:</td>";
print "<td><select name=\"Names\">\n";
while ( $a_row = mysql_fetch_row( $result) )
{
foreach ( $a_row as $field )
print "\t<option value=\"$field\"> $field\n";
}
print "</select></td>\n";
print "</table>\n";
This gives me the Select box with all the names in the DB.