HighDots Forums  

Re: Two Questions Re: Child-Parent Script

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Two Questions Re: Child-Parent Script in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jason Dalgarno
 
Posts: n/a

Default Re: Two Questions Re: Child-Parent Script - 07-24-2004 , 06:00 AM






David B <david_blomstromDELETETHIS (AT) yahoo (DOT) com> wrote in
news:cdsocl$676$1 (AT) forums (DOT) macromedia.com:

Quote:
This script appears to work quite well. It prints out every mammal
order, family, genus and species - and surprisingly rapidly. But the
display alternates data with the error message "Warning: Invalid
argument supplied for foreach() in C:\sites\freedomware\axis.php on line
127."
display_errors must be turned off in my head.

You want
if (isset($nodes[$parent])) {
....
}

around the foreach.


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Two Questions Re: Child-Parent Script - 07-24-2004 , 08:27 AM






Quote:
display_errors must be turned off in my head.
---------------------------------------------------^^^^
Nice one. How you do that?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Jason Dalgarno" <null (AT) see-reply-to-e7x (DOT) com> wrote

Quote:
David B <david_blomstromDELETETHIS (AT) yahoo (DOT) com> wrote in
news:cdsocl$676$1 (AT) forums (DOT) macromedia.com:

This script appears to work quite well. It prints out every mammal
order, family, genus and species - and surprisingly rapidly. But the
display alternates data with the error message "Warning: Invalid
argument supplied for foreach() in C:\sites\freedomware\axis.php on line
127."

display_errors must be turned off in my head.

You want
if (isset($nodes[$parent])) {
...
}

around the foreach.



Reply With Quote
  #3  
Old   
David B
 
Posts: n/a

Default Re: Two Questions Re: Child-Parent Script - 07-24-2004 , 04:43 PM



Jason Dalgarno wrote:

Quote:
David B <david_blomstromDELETETHIS (AT) yahoo (DOT) com> wrote in
news:cdsocl$676$1 (AT) forums (DOT) macromedia.com:


This script appears to work quite well. It prints out every mammal
order, family, genus and species - and surprisingly rapidly. But the
display alternates data with the error message "Warning: Invalid
argument supplied for foreach() in C:\sites\freedomware\axis.php on line
127."


display_errors must be turned off in my head.

You want
if (isset($nodes[$parent])) {
...
}

around the foreach.
Yes, that fixed it, thanks. I wish you had written the tutorial!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.