Re: [PHP] tree structures

2002-07-09 Thread Alexander Ross
om table limit $P, $C > > > > Make a link at the bottom > > > > $NextPage = $P + $C; > > if ($P > $C) > > $PreviousPage = $P - $C; > > else > > $PreviousPage = 0; > > > > print "Next Page"; > > > > You get the idea...

Re: [PHP] tree structures

2002-07-09 Thread Alexander Ross
; $NextPage = $P + $C; > if ($P > $C) > $PreviousPage = $P - $C; > else > $PreviousPage = 0; > > print "Next Page"; > > You get the idea... > > > > -Original Message- > From: Alexander Ross [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 08, 2002 6

RE: [PHP] tree structures

2002-07-09 Thread Lazor, Ed
der Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 6:22 PM To: [EMAIL PROTECTED] Subject: [PHP] tree structures I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively ad

[PHP] tree structures

2002-07-08 Thread Alexander Ross
I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively add, delete, display, etc...) Everything works so far (www.bleen.net/forum). I want to be able to display 10 posts (includi

[PHP] Tree structures, references & segfaults

2002-06-06 Thread Peter Blokland
Hi, I'm trying to build a tree of objects in PHP, and having all sorts of trouble. Ideally, I'd like to end up with a reference to an object, which has an array of (references to) child-objects. Each child-object, except the root, also contains a reference to its parent. A sample : name = $name