help... please!
Posted: Sun Oct 27, 2002 1:51 pm
Hey,
I have this code:
The thing is I want to know how to ignore duplicate entries when printing out the products....
i have a field called $name where there will be duplicate entries...
please help
I have this code:
Code: Select all
$query = mysql_query("SELECT * FROM products WHERE product ='$id'") or die ("Unable to get product list from the database.");
while ($view = mysql_fetch_array($query)) {
print $product;
}The thing is I want to know how to ignore duplicate entries when printing out the products....
i have a field called $name where there will be duplicate entries...
please help