Re: Problems with implode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/24/09 9:25 AM, "Andrea Giammarchi" <an_red@xxxxxxxxxxx> wrote:

> 
> Dunno why you guys started talk about utf-8 problems, he has a list of ids
> which should contain only unsigned integers, otherwise I do not get how that
> query could work with an implode(',', $whatever) rather than 'id in
> ("'.implode('","', array_map('mysql_real_escape_string', $whatever)).'")' ...
> so, the problem could be more about missed ids in the array obtaining ,, ...
> so, in this case, array_filter before, no?

it's certainly possible. but the way toke described his problem did not
imply that his ids were unsigned integers.

SELECT FROM ... WHERE id IN ('aardvark', 'abacus', 'abbey', ..., 'zulu',
'zygote');




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux