technotool Posted December 9, 2008 Share Posted December 9, 2008 HI, I am helping to make a php app for some vets. basically, when the vet sees an animal they create an encounter by inputting the information into a form. Each encouter is unique for a given date. Of course the form from the encounter gets stored in a MySQL database. easy enough. The vets now want a directory tree of each encounter for a given animal. so for example, the vet clicks an animal, SPOT ==> a directory tree (I am calling this a directory tree but really it is an encouter tree) pops up with the animal's name as a heading and each encounter form date as a branch. I mean I think that I can pull each date from the MySQL database stick it in a table format-- but how do you make the lines that we see with a directory tree. Is there some prepackaged script somewhere. Thanks in advace for taking the time to read this. technotool. Spot | |_12/12/2007 New Animal Encounter |_12/20/2007 Followup Encounter |_12/30/2007 Followup Hit by baseball Quote Link to comment https://forums.phpfreaks.com/topic/136277-directory-tree-structure/ Share on other sites More sharing options...
o3d Posted December 10, 2008 Share Posted December 10, 2008 I applied this scenario to a similar situation. I used '+' and '-' images (hehe, used trusty paint) and depending on if the branch can be explored, added either a minus or plus image. Quote Link to comment https://forums.phpfreaks.com/topic/136277-directory-tree-structure/#findComment-711276 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.