What I am doing is calling "resorts" from a database and putting them in a dropdown menu. This dropdown menu ultimately ends up being used in my search engine.
Anyways, my problem is when I call the field "resort" from my dbase I get tons of the same... I just want it to remove all duplicates...
So for example. If I have 10 resorts called "Abba" in my dbase and another 10 resorts called "Abba2" in my dbase, I only want to dropdown menu to give me the option to choose from Abba/Abba2, not 20 (10 of each).
Here is my current code:
<?php
require("dbset.inc");
$Query = "SELECT id, resort FROM vacation ORDER BY resort;";
$queryexe = mysql_query($Query, $db);
while($row = mysql_fetch_row($queryexe))
{
$id = $row[0];
$name = $row[1];
print ("<option VALUE='$name'>$name");
}
?>