Tom Worster skrev:
On 3/24/09 9:25 AM, Andrea Giammarchi an_...@hotmail.com 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
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)).')'
: virgilio.quila...@gmail.com
To: t...@ezl-data.dk
CC: php-general@lists.php.net
Subject: Re: [PHP] Problems with implode
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
max_allowed_packet setting? is it bigger than produced string?
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 15:23:20 +0100
From: t...@ezl-data.dk
Subject: Re: [PHP] Problems with implode
Per Jessen skrev:
Andrea Giammarchi wrote:
Dunno why you guys started talk about utf-8 problems
Giammarchi skrev:
What about MySQL max_allowed_packet setting? is it bigger than
produced string?
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 15:23:20 +0100
From: t...@ezl-data.dk
Subject: Re: [PHP] Problems with implode
Per Jessen skrev:
Andrea Giammarchi wrote:
Dunno why you guys
array:
$list = array(12300..12800); and see what happens.
regards,
Toke
Andrea Giammarchi skrev:
What about MySQL max_allowed_packet setting? is it bigger than
produced string?
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 15:23:20 +0100
From: t...@ezl-data.dk
Subject: Re: [PHP] Problems
Subject: Re: [PHP] Problems with implode
Per Jessen skrev:
Andrea Giammarchi 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)
Very
On 3/24/09 9:25 AM, Andrea Giammarchi an_...@hotmail.com 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
Hi All,
I've an array() with approx 1200 items (list of id-mappings) that part
works fine.
Now I want to add this list to a query:
$where = id in (.$idList.);
To accomplish that i do an implode:
$idList = implode(',', $TidList);
My problem is that some of the values gets concenated, others
On 3/24/09 7:14 AM, Toke Herkild t...@ezl-data.dk wrote:
I've an array() with approx 1200 items (list of id-mappings) that part
works fine.
Now I want to add this list to a query:
$where = id in (.$idList.);
To accomplish that i do an implode:
$idList = implode(',', $TidList);
My
Toke Herkild wrote:
Hi All,
I've an array() with approx 1200 items (list of id-mappings) that part
works fine.
Now I want to add this list to a query:
$where = id in (.$idList.);
To accomplish that i do an implode:
$idList = implode(',', $TidList);
My problem is that some of the
a problem, but I've never seen any issues
with it like you're describing.
-TG
- Original Message -
From: Toke Herkild t...@ezl-data.dk
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 12:14:01 +0100
Subject: [PHP] Problems with implode
Hi All,
I've an array() with approx 1200
TG wrote:
I don't think that would be a problem, the size of the array. I've
used implode at least once or twice on fairly large arrays. More
likely is something weird with your data.
Yeah, like the odd backspace or carriage return perhaps.
/Per
--
Per Jessen, Zürich (3.0°C)
--
PHP
On Tue, Mar 24, 2009 at 9:15 AM, Per Jessen p...@computer.org wrote:
TG wrote:
I don't think that would be a problem, the size of the array. I've
used implode at least once or twice on fairly large arrays. More
likely is something weird with your data.
Yeah, like the odd backspace or
On 3/24/09 8:58 AM, Per Jessen p...@computer.org wrote:
I can't reproduce that behaviour - I tried with ascii ('klop') and utf8
('Köhler') text.
neither can i. if the mail systems don't screw it up, here's my test
strings:
$strs = array(
'Iñtërnâtiônàlizætiøn',
'החמאס:
)).')' ...
so, the problem could be more about missed ids in the array obtaining ,, ...
so, in this case, array_filter before, no?
Regards
Date: Tue, 24 Mar 2009 09:19:53 -0400
From: m...@neimeyer.org
To: php-general@lists.php.net
Subject: Re: [PHP] Problems with implode
On Tue, Mar 24, 2009 at 9:15
2009/3/24 Toke Herkild t...@ezl-data.dk:
Hi All,
I've an array() with approx 1200 items (list of id-mappings) that part works
fine.
Now I want to add this list to a query:
$where = id in (.$idList.);
To accomplish that i do an implode:
$idList = implode(',', $TidList);
Are all of the
On 3/24/09 9:15 AM, Per Jessen p...@computer.org wrote:
TG wrote:
I don't think that would be a problem, the size of the array. I've
used implode at least once or twice on fairly large arrays. More
likely is something weird with your data.
Yeah, like the odd backspace or carriage
Andrea Giammarchi 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)
Very good point - maybe the OP has not yet tested his code that
Per Jessen skrev:
Andrea Giammarchi 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)
Very good point - maybe the OP has not yet
Tom Worster skrev:
On 3/24/09 9:15 AM, Per Jessen p...@computer.org wrote:
TG wrote:
I don't think that would be a problem, the size of the array. I've
used implode at least once or twice on fairly large arrays. More
likely is something weird with your data.
Yeah, like the odd backspace
What about MySQL max_allowed_packet setting? is it bigger than produced string?
To: php-general@lists.php.net
Date: Tue, 24 Mar 2009 15:23:20 +0100
From: t...@ezl-data.dk
Subject: Re: [PHP] Problems with implode
Per Jessen skrev:
Andrea Giammarchi wrote:
Dunno why you guys started
22 matches
Mail list logo