Basic Dual Query Combine into one question
| From: | dealTek | Date: | Fri, 23 Jan 2015 01:50:17 +0000 |
| Subject: | Basic Dual Query Combine into one question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-324275@lists.php.net to get a copy of this message | ||
Hi all, (newbie question)
- let's say, (for some other reasons I'll skip here) I needed to do two separate queries
to the same mysql contacts table (rather than one more elegant combined one)
1 - find everybody from California
2 - find everybody from Texas
Then – I would like to combine both of these queries into some kind of an array that I could loop
through and display after sorting by last name
Q: I am curious the best way to combine the 2 separate queries into 1 afterwards?
--
Thanks,
Dave - DealTek
dealtek@gmail.com
[db-15]