$query = mysql_query("SELECT * FROM tblname");
while($fetch =mysql_fetch_array($query)) {
$name = $fetch['name'];
echo "$name";
}
In my example, after echoing out $name in a while, the values are:
Carrots
Lemon
Carrots
Lemon
Is there a way to not repeat printing the same value that will look like this:
Carrots
Lemon
Thank you very much.