[PHP] Re: excluding same field values in mysql

2003-02-19 Thread no-spam----me
In your query throw a 'DISTINCT' in right after your 'SELECT'; Sunfire [EMAIL PROTECTED] wrote: hi im making a mailing system for a company. i have to find all email addresses in a table and send email to all of them. the problem comes in when more than 1 company has the same email address

[PHP] Re: Associative vs normal arrays

2003-02-02 Thread no-spam----me
No functions that I can think of but you can write one like this: $arrayType = 'numeric'; foreach($myArray as $key = $value) { if(!is_numeric($key)) { $arrayType = 'associative'; } } Also remember that an array can be both! Larry Is there a way to determine if an array