Hello;
I'm trying to get a dropdown list to work. The first block gives me a small table with working links. The second block gives me a dropdown list but no links. How do i put the two together and get a dropdown list with working links.
HELP
BLOCK 1
$results = mysql_query("SELECT id, name FROM category WHERE parent=12");
while (list($id, $name,) = mysql_fetch_row($results))
print("<tr>\n".
"<td><a href=\"info.php3?id=$id\">$name</a></td>\n".
"<td>$salary</td>\n".
"</tr>\n");
BLOCK 2
$results = mysql_query("SELECT name, id FROM category WHERE parent=12") ;
print "<select name=\"blah\">\n" ;
while ( $row = mysql_fetch_row($results) )
print "<option>".htmlspecialchars($row[0])."</option>\n" ;
print "</select>\n" ;
Shawn