Hi there. I'm new on mysql, but I have a database with some data, ordered by name:
<option value="4"> George </option>
<option value="55"> John </option>
<option value="13"> Paul </option>
<option value="24"> Ringo </option>
I want to put this on a select, like this:
while($row = mysql_fetch_array($result) ){
echo "<option value='".$row['id']."'>".$row['name']."</option>";
}
But I want to tell the select to put just one option at the top, the most popular choice, like this:
<option value="55"> John (most popular)</option>
<option value="4"> George </option>
<option value="13"> Paul </option>
<option value="24"> Ringo </option>
How Can I exclude just one row? I have to use mysql_fetch_array?
Is better to do this on the SQL? Or using a loop?
Thanks!