Piotras a �crit :

Sam Przyswa <[EMAIL PROTECTED]> wrote:



There is a part of my script:

$first_tree = *mgd_list_pages($root_page);
*
while( $first_tree->fetch() ) {
if ($first_tree->parameter('bouton', 'position') || $first_tree->parameter('bouton', 'syndicat')) {
$list[] = array(
"id" => $first_tree->id,
"order" => $first_tree->parameter('bouton', 'position'),
"separ" => $first_tree->parameter('bouton', 'separateur'),
"syndic" => $first_tree->parameter('bouton', 'syndicat'),
* "name" => $first_tree->name,*
* *"title" => $first_tree->title
);
}


There is a part of the return query:

+------+-----------------------+-------+---------------------------
| id | name | style | title +------+-----------------------+-------+---------------------------
| 157 | Acteurs_Branche | 36 | Acteurs de la branche


As you can see the name field is returned

I rised the limit of PHP scripts memory but it's the same, echo *$first_tree->name; *return 0 (NULL)*
*



I do not see any echo or print in your example.
Do You call it in "while" loop, or after?


I use the echo to debug my script, the problem is that the $first_tree->name is empty, I use this to generate the URL in a button menu in flash animation, the script is too long to be copied here.

Sam.



--
Ce message a �t� v�rifi� par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.
MailScanner remercie transtec pour son soutien.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to