On 12-03-23 05:41 PM, Jay Blanchard wrote:
[-- DELETED GARBAGE --] :)
I just realized... I've been stuck in a thinking rut. I latched onto one
solution that works well in some case but didn't fully examine the
nuances of your own scenario. Given the way you are creating your
hierarchy you w
On 12-03-23 05:26 PM, Jay Blanchard wrote:
[snip]
$item['children'] should be an array, somehow a string has been assigned :/
[/snip]
Yep. I am trying to figure that out now. I'm sure it is something really small.
[/snip]
I have been hammering away at it for a while now and still cannot find
On 12-03-23 06:30 PM, Simon Schick wrote:
2012/3/23 Robert Cummings
On 12-03-23 11:16 AM, Arno Kuhl wrote:
it still does not produce the correct result:
0 1 3 6 10 15 21
0 1 3 6 10 15 15
This looks like a bug... the last row should be the same. What version of
PHP are you using? Have you
2012/3/23 Robert Cummings
>
> On 12-03-23 11:16 AM, Arno Kuhl wrote:
>>
>>
>> it still does not produce the correct result:
>> 0 1 3 6 10 15 21
>> 0 1 3 6 10 15 15
>
>
> This looks like a bug... the last row should be the same. What version of
> PHP are you using? Have you checked the online bug r
[snip]
…stuff….
[/snip]
For those interested here is where the problem seems to occur -
$child = array
(
'id' => $id,
'parentId' => $pid,
'children' => array()
);
$children
> [snip]
>> $item['children'] should be an array, somehow a string has been assigned :/
> [/snip]
>
> Yep. I am trying to figure that out now. I'm sure it is something really
> small.
[/snip]
I have been hammering away at it for a while now and still cannot find the
issue. I'll push away for a
[snip]
> $item['children'] should be an array, somehow a string has been assigned :/
[/snip]
Yep. I am trying to figure that out now. I'm sure it is something really small.
BTW, after making the change to the for loop there are results returned as we
expected.
--
PHP General Mailing List (http:
On 12-03-23 03:52 PM, Jay Blanchard wrote:
[snip]
SELECT DISTINCT `TIER3DATA` AS id, `TIER2DATA` AS parentId FROM
`POSITION_SETUP` WHERE `COMPANY_ID` = '3' AND `TIER2DATA` IN ('Executives and
Management','Professionals','Technicians','Craft
Workers-Skilled','Operatives','Contractor','Sales Wor
> [snip]
> SELECT DISTINCT `TIER3DATA` AS id, `TIER2DATA` AS parentId FROM
> `POSITION_SETUP` WHERE `COMPANY_ID` = '3' AND `TIER2DATA` IN ('Executives and
> Management','Professionals','Technicians','Craft
> Workers-Skilled','Operatives','Contractor','Sales Workers','Laborers and
> Helpers','Ad
[snip]
> No, I'm performing assignment... intentionally. Parent's becomes the previous
> children to move down a level. The following:
>
>if( !($parents = &$children) )
>
> performs assignment and an empty array check in one statement.
[/snip]
Gotcha'.
So all I am ever getting back right
[snip]
> Did you get any results form the database on the second run through the query
> loop?
[/snip]
Actually, no. I just ran the raw query -
SELECT DISTINCT `TIER3DATA` AS id, `TIER2DATA` AS parentId FROM
`POSITION_SETUP` WHERE `COMPANY_ID` = '3' AND `TIER2DATA` IN ('Executives and
Managem
On 12-03-23 03:28 PM, Jay Blanchard wrote:
On Mar 23, 2012, at 2:25 PM, Robert Cummings wrote:
On 12-03-23 03:17 PM, Jay Blanchard wrote:
[snip]
$json = JSON_encode( $root );
[/snip]
Update on my test. This works perfectly Robert - thank you very much! But there
is one small problem t
On Mar 23, 2012, at 2:25 PM, Robert Cummings wrote:
> On 12-03-23 03:17 PM, Jay Blanchard wrote:
>> [snip]
>>>$json = JSON_encode( $root );
>> [/snip]
>>
>> Update on my test. This works perfectly Robert - thank you very much! But
>> there is one small problem that I am trouble-shooting: it
On 12-03-23 02:04 PM, Arno Kuhl wrote:
Hi Rob
I'm using php 5.3.5. What result do you get when you run this code?
I haven't checked any bug reports, I'll google to see where I would do that.
Your code gets round the problem, but I was specifically referring to the use
of foreach with its unexp
On 12-03-23 03:22 PM, Jay Blanchard wrote:
[snip]
$json = JSON_encode( $root );
[/snip]
Update on my test. This works perfectly Robert - thank you very much! But there
is one small problem that I am trouble-shooting: it only goes one layer and
doesn't progress any further. I suspect it
On 12-03-23 03:17 PM, Jay Blanchard wrote:
[snip]
$json = JSON_encode( $root );
[/snip]
Update on my test. This works perfectly Robert - thank you very much! But there
is one small problem that I am trouble-shooting: it only goes one layer and
doesn't progress any further. I suspect it i
> [snip]
>> $json = JSON_encode( $root );
> [/snip]
>
> Update on my test. This works perfectly Robert - thank you very much! But
> there is one small problem that I am trouble-shooting: it only goes one layer
> and doesn't progress any further. I suspect it is on this section of code
> that
[snip]
>$json = JSON_encode( $root );
[/snip]
Update on my test. This works perfectly Robert - thank you very much! But there
is one small problem that I am trouble-shooting: it only goes one layer and
doesn't progress any further. I suspect it is on this section of code that I am
going to
On 12-03-23 02:08 PM, Jay Blanchard wrote:
[snip]
Your data structure doesn't appear to be very ummm normalized... Nonetheless,
the following should do it:
[/snip]
You're absolutely correct. Unfortunately I am not the designer and cannot
really do anything about it. I just have to work with
[snip]
> Your data structure doesn't appear to be very ummm normalized... Nonetheless,
> the following should do it:
[/snip]
You're absolutely correct. Unfortunately I am not the designer and cannot
really do anything about it. I just have to work with what I have. Thank you
very much for this
-Original Message-
From: Robert Cummings [mailto:rob...@interjinn.com]
Sent: 23 March 2012 06:11 PM
To: a...@dotcontent.net
Cc: php-general@lists.php.net
Subject: Re: [PHP] foreach weirdness
On 12-03-23 11:16 AM, Arno Kuhl wrote:
> The following snippet is copied from the php manual:
> fo
>
> This is the result of "locate mysql_config":
>
[zhaoyuan@localhost php-5.4.0]$ locate mysql_config
/home/zhaoyuan/下载/MySQL-5.5.21-1.el6.src/mysql-5.5.21/man/mysql_config.1
/home/zhaoyuan/下载/MySQL-5.5.21-1.el6.src/mysql-5.5.21/scripts/mysql_config
/home/zhaoyuan/下载/MySQL-5.5.21-1.el6.src/mysql-5
2012/3/23 Asher Wong :
> I droped it but now the new error happened:
> checking for mysql_config... not found
> configure: error: Unable to find your mysql installation
Try:
locate mysql_config
> And I'm sorry to send more than one reply. Maybe there are something wrong
> with the ne
I droped it but now the new error happened:
checking for mysql_config... not found
configure: error: Unable to find your mysql installation
And I'm sorry to send more than one reply. Maybe there are something wrong
with the network here.
2012/3/24 Daniel Brown
> 2012/3/23 Asher Wong :
> > Now I
2012/3/23 Asher Wong :
> Now I use the command below to configure php:
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd
> --with-mysql=/usr/local/mysql/bin/mysql_config --with-mysqli=mysqlnd
> --with-pdo-mysql=myslqnd
>
> And the error happened:
> configure: error: Cannot
Now I use the command below to configure php:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd
--with-mysql=/usr/local/mysql/bin/mysql_config --with-mysqli=mysqlnd
--with-pdo-mysql=myslqnd
And the error happened:
configure: error: Cannot find MySQL header files under
/usr/
Now I use the command below to configure php:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd
--with-mysql=/usr/local/mysql/bin/mysql_config --with-mysqli=mysqlnd
--with-pdo-mysql=myslqnd
And the error happened:
configure: error: Cannot find MySQL header files under
/usr/
I tried, but it didn't work.
2012/3/24 Daniel Brown
> 2012/3/23 Asher Wong :
> > I have installed the MySQL-devel and I can find mysql.h, but I still have
> > the error I mentioned above.
> > ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
> > ext/mysql/php_mysql.c:1012: undefi
I trid, but it didn't work.
2012/3/24 Daniel Brown
> 2012/3/23 Asher Wong :
> > I have installed the MySQL-devel and I can find mysql.h, but I still have
> > the error I mentioned above.
> > ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
> > ext/mysql/php_mysql.c:1012: undefin
2012/3/23 Asher Wong :
> I have installed the MySQL-devel and I can find mysql.h, but I still have
> the error I mentioned above.
> ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
> ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
> ext/mysql/php_mysql.c:876: u
I have installed the MySQL-devel and I can find mysql.h, but I still have
the error I mentioned above.
ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_i
On 23/03/2012 16:58, Asher Wong wrote:
> I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
> can find the MySQL headers in the MySQL source I used. Is there anything
> wrong with my installing MySQL?
Hi,
You can just install the mysql headers via the devel package if you
I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
can find the MySQL headers in the MySQL source I used. Is there anything
wrong with my installing MySQL?
> 2012/3/23 Daniel Brown
>
>> 2012/3/23 黄昭源 :
>> > Hello, I have a problem.
>> > When I configure php with the par
I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
can find the MySQL headers in the MySQL source I used. Is there anything
wrong with my installing MySQL?
2012/3/23 Daniel Brown
> 2012/3/23 黄昭源 :
> > Hello, I have a problem.
> > When I configure php with the parameter -
On 12-03-23 11:16 AM, Arno Kuhl wrote:
The following snippet is copied from the php manual:
foreach ($arr as $key => $value) {
echo "Key: $key; Value: $value\n";
}
I've always used the foreach loop that way.
But recently I started hitting some really odd problems.
See this following ex
The following snippet is copied from the php manual:
foreach ($arr as $key => $value) {
echo "Key: $key; Value: $value\n";
}
I've always used the foreach loop that way.
But recently I started hitting some really odd problems.
See this following example that illustrates the problem:
$array
> Did I accidentally subscribe to the mediabeez website development
> mailing list? Hello?
Rene, it's true. ^^^
We'd all LOVE to have an expert list to test our site dev for us... and it can
even seem to be the case because people are so helpful and certainly help with
any specific question..
2012/3/23 黄昭源 :
> Hello, I have a problem.
> When I configure php with the parameter --with-mysql=/usr/local/mysql and
> make, some errors happen. Below is the errors:
> ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
> ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_c
concerning your background image:
If I resize my window after loading finished, your images gets distorted
(the one with the bee)
I also think - this is not verified yet - that an animated gif with
interlacing is smaller than your logo png spritemap
Why is this frame loaded
http://mediabe
Did I accidentally subscribe to the mediabeez website development
mailing list? Hello?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: rene7705 [mailto:rene7...@gmail.com]
> Sent: March 23, 2012 7:40 AM
> To: php-general
> Subject: Re: [PHP] Re: Got HTML5 History API + caching LICKED, I think,
>
>
> On Fri, Mar 23, 2012 at 12:39 PM, rene7705 wrote:
>
> >
> >
> > On Fri, Mar 23, 2012 at 12:3
On Fri, Mar 23, 2012 at 12:39 PM, rene7705 wrote:
>
>
> On Fri, Mar 23, 2012 at 12:38 PM, rene7705 wrote:
>
>>
>>
>> On Fri, Mar 23, 2012 at 10:02 AM, rene7705 wrote:
>>
>>> Because some of you complained about the byte size of my homepage
>>> http://mediabeez.ws (was 2.5mb due to artwork), I'v
On Fri, Mar 23, 2012 at 12:38 PM, rene7705 wrote:
>
>
> On Fri, Mar 23, 2012 at 10:02 AM, rene7705 wrote:
>
>> Because some of you complained about the byte size of my homepage
>> http://mediabeez.ws (was 2.5mb due to artwork), I've invested some time
>> in shaving off quite a few bytes;
>>
>> I
On Fri, Mar 23, 2012 at 10:02 AM, rene7705 wrote:
> Because some of you complained about the byte size of my homepage
> http://mediabeez.ws (was 2.5mb due to artwork), I've invested some time
> in shaving off quite a few bytes;
>
> I've discovered that by using photoshop to reduce the animation i
Because some of you complained about the byte size of my homepage
http://mediabeez.ws (was 2.5mb due to artwork), I've invested some time in
shaving off quite a few bytes;
I've discovered that by using photoshop to reduce the animation image color
depth to "indexed color, 217 color", I can get the
45 matches
Mail list logo