so in the MySQL Command Line Client
select distinct type from files;
results in:
+------+
| type |
+------+
| mp3 |
| wma |
+------+
2 rows in set (0.00 sec)
When in a php script i execute the following code:
$query = "select distinct type from files;";
$result = mysql_query($query) or die (mysql_error());
$row = mysql_fetch_array($result);
Foreach ($row as $key => $val )
{
echo $val;
}
the result is:
Why is it not: