Hi,
I have the following code in place:
while ($row = mysql_fetch_array($result)) // this will grab the results from query
{
$listcat .= "<option value=\"$row[lister_agent_name]\">$row[lister_agent_name]</option>";
}
Obviously, this is going to populate a pull down....my problem is the the results from $row[lister_agent_name] are not unique...as it is a listing of names....and some of the names are duplicates. How can I just get unique results for $row[lister_agent_name]? Do I have to alter the query?
SELECT lister_agent_name from mastertable where lister_office_name = '$client_name';
Do I have the tell the query to get only unique results....how should the query be structured?