> Totally wrong ! It's always better to have maximum work done by MySQL

So does that mean that this:

> $countUser = count($arrayUser);
> for($i = 0; $i < $countUser; $i++){
>       $sql = "SELECT email FROM table WHERE id = '" . $arrayUser[$i] .
> "' ";
> }

... is faster than this:

> "SELECT email FROM table WHERE id IN ('" . 
> implode("','",$array) . "')";

... ?

-- 
Cheers!
Dave G
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to