Forum Moderators: coopster
"SELECT DISTINCT email, email2, email3 FROM customers LEFT JOIN email_cust ON email_cust.email_ID = customers.customer_ID LEFT JOIN state_cust ON state_cust.state_ID = customers.customer_ID WHERE state IN ('" . implode("','", $state) . "')"
and two forms with multiple list and textarea, the multiple list contains the states and the textarea is empty until state(s) is chosen, which then returns the according emails for each state(s) chosen in the multiple list.
The issue is that I receive a Warning: implode() [function.implode]: Bad arguments...
but only when there has not been a selection made. Once a selection is made then everything works as should. I assume this is because it is attempting to implode 'nothing'.
Any direction is appreciated.