Re: [PHP] excluding same field values in mysql

2003-02-20 Thread Sunfire
: [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

RE: [PHP] excluding same field values in mysql

2003-02-19 Thread Kelly Protsko
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