Forum Moderators: coopster
Code below:
"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 LIKE '%%%s%%'"
<textarea name="email" cols="40" rows="10" id="email" type="text"><?php do {?><?php echo $row_record1['email']."\n", $row_record1['email2']."\n", $row_record1['email3']."\n"?><?php } while ($row_record1 = mysql_fetch_assoc($record1));?></textarea>
otherwise you will have to independently echo each email value and put an "if" test on each echo.
not sure of php syntax, but something like:
...<?php if ($row_record1['email']){echo $row_record1['email']."\n"}?>...