Hi all
I have a call to a database table the results stored what i thought into an array that has many duplicates, im just trying to remove the duplicates using the following code but it just returns an error ...
Warning: array_unique() [function.array-unique]: The argument should be an array in......
$query = "SELECT * FROM classes";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$class = $row['class'];
}
$result = array_unique($class);
echo $result;
echo "<br />";
I would appreciate is someone could correct my errors if possible plz
Many thanks