Jump to content

[SOLVED] Number of Rows


cheechm

Recommended Posts

I agree with the post before me, but are you asking for results 1, 2, and 3? 

 

This is how I would do so (if that is the question)...

 

<?

 

# Assuming you have already created the MYSQL Statement...

 

$results = mysql_num_rows($mysql_result);

 

echo("<select name='name_here'>");

 

while ($row = mysql_fetch_array($mysql_result)) {

 

extract($row);

 

echo("<option>$result_name</option>");

 

}

 

echo("</select>");

 

?>

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.