[PHP] Re: Problem with menu

2002-07-03 Thread Richard Lynch
when I echo menu($id) I get the current page's title. How do I print it's peers and it's single parent? You will need a second query to ask for all the children of the parent: $peer_query = select id as child_id, title from meta_data where pid = $pid; $peers = mysql_query($query) or

[PHP] Re: Problem with menu

2002-07-03 Thread JJ Harrison
Thx. I a bit of a n00b so don't always understand. I is a lot clearer now thank you -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Richard Lynch [EMAIL PROTECTED] wrote in message news:20020703212954.BFUU903.sccrmhc03.attbi.com@[192.168.1.103]... when I echo menu($id) I get the current

[PHP] Re: Problem with menu

2002-07-02 Thread JJ Harrison
Thanks for that info. I am still a bit new to programming/PHP to fully grasp that but I am sure I will in time. *anyway* when I echo menu($id) I get the current page's title. How do I print it's peers and it's single parent? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com P.S. I originally

[PHP] Re: Problem with menu

2002-07-01 Thread Richard Lynch
I have a table with id, pid(parent), title and page_name(url) fields. The vars provided to the script are the current page's title, id and pid(parent) You can look up the parent and in the database, so it's not horribly important that those be provided. *UNLESS* you have a heterarchy, and not

Re: [PHP] Re: Problem with menu

2002-07-01 Thread Analysis Solutions
Hi Richard: Nice to have you back on the list. I've noticed your replies are not winding up back in the threads due to the Reference header not being set by Outlook. While this isn't going to cause the end of the world, it'd be nice if they were there. Enjoy, --Dan -- PHP

Re: [PHP] Re: Problem with menu

2002-07-01 Thread Analysis Solutions
On Mon, Jul 01, 2002 at 08:00:39PM -0400, Analysis Solutions wrote: Hi Richard: Oops. Meant to reply directly to Ricahrd. Sorry 'bout that. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info |