Re: Array Manipulation?
| From: | _lallous | Date: | Wed, 17 Oct 2001 07:35:21 +0000 |
| Subject: | Re: Array Manipulation? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9882@lists.php.net to get a copy of this message | ||
In your MySql query you can put a condition to exclude the unwated 3
records.
example: select * from tablename where not(id in (1,2,3))
"Mark Sweeney" <mark@nintendoodle.com> wrote in message
news:000e01c1568c$af4aa740$96ab869f@a...
Hey,
Just wondering, I am fetching a load of ids and names from a Mysql database.
However, I want to exclude 3 of the results from this based on their id
numbers. How would I go about this? An array_filter? And if so, what would I
do? sorry for my isiocy, but I am still learning and its pretty urgent for
me to find this out.
Thanks
Mark