: [PHP] excluding same field values in mysql
In a message dated 2/19/2003 5:22:19 PM Pacific Standard Time, [EMAIL PROTECTED]
writes:
in the example above i want to only use one of those addresses since they
would end up getting 2 emails and that wouldnt look right..
code i have so
If you only want one email do a select distinct email that way only one
email address will be brought back from you query.
>$query=mysql_query("select company, Email from members");
$query = mysql_query("select company, distinct(Email) from members");
if you want a good book for this check out M
2 matches
Mail list logo