] can someone explain this query to me
$query = "delete from meetings where id IN (".implode(",", $ids).")";
Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN
do??
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Ross,
Ross wrote:
> $query = "delete from meetings where id IN (".implode(",", $ids).")";
>
> Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN
> do??
It's the equivalent of WHERE id = 1 OR id = 2 OR id = 3 OR id = 4 OR id = 5.
Cheers,
David
--
David Grant
http://www.g
$query = "delete from meetings where id IN (".implode(",", $ids).")";
Just the end bit, ids is an array of values (1,2,3,4,5) what does the IN
do??
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo