I have mySQL DB where I have this: link
I need to return result where first item will be item with id==1 and then add to that everything else in alphabetical order. This is what I want:
[Názov predmetu], [Algoritmizácia úloh], [Fyzika 1]...
Now Im using this:
<?php
$result = mysql_query("SELECT nazov FROM tbPredmety ORDER BY nazov ASC");
echo "<select name='subject_name'>";
while ($row = mysql_fetch_assoc($result))
{
echo "<option value = '" . $row[nazov] . "'>" . $row[nazov] . "</option>";
}
echo "</select>";
?>