| List: | General Discussion | « Previous MessageNext Message » | |
| From: | julian haffegee | Date: | September 6 2002 2:35am |
| Subject: | select statements | ||
| View as plain text | |||
Hi all,
I have a database of names and email addresses, that I want to email.
$result = mysql_query("SELECT emailAddress FROM subscribers_html WHERE
mailingGroup='$toText'");
The select statement needs to return a row when mailingGroup='$toText', but
$toText is an array. How should I write this select to say where
mailingGroup is an element of the array $toText. Currently it works for
arrays with 1 element only.
I could turn the array into a string, but I wondered if there was a clever
MySQL way of doing it all as a select
Thanks for your help!
Jules
| Thread | ||
|---|---|---|
| • changing a slave to a master in mysql replication | Vicky Gonzalez | 4 Sep |
| • Re: changing a slave to a master in mysql replication | Bhavin Vyas | 4 Sep |
| • RE: changing a slave to a master in mysql replication | Vicky Gonzalez | 4 Sep |
| • Help!! Extreme newbie | Al Davis | 4 Sep |
| • Re: Help!! Extreme newbie | Dicky Wahyu Purnomo | 4 Sep |
| • Re: Help!! Extreme newbie | Steven Kreuzer | 6 Sep |
| • select statements | julian haffegee | 6 Sep |
| • Re: select statements | Jed Verity | 6 Sep |
| • Re: select statements | julian haffegee | 6 Sep |
| • Re: changing a slave to a master in mysql replication | Bhavin Vyas | 4 Sep |
| • Re: select statements | Jed Verity | 6 Sep |
