Hello all. I've been doing minimal php programming for a few months now and have been issued a new task.
If anyone can point me in the right direction, I would most appreciate it.
I am using PHP to connect to a database (I got that part down no problem).
What I am trying to do is get a "Tree View" so to speak. I want to split a .PHP/HTML page into two frames. The left frame will read from the DB and get all of the Customers. It should then display all of the customers on that left side, along with allowing them to be clicked. If you click on a customer, it should "expand" underneath the customer and show some more information about the customer, such as "contract numbers". You should be able to click on multiple customers in the list, and it would expand them out. (I.e you should be able to have multiple customers expanded out at the same time). When you click on a contract number, it should then display the details on the right hand side.
I know how to pull all the information that I want from the DB and set up the A HREF links, etc. What I am not too sure about is how to go about doing this. I do not want to load up "ALL" the data in one shot and then do javascript or something to expand the tree. I had a friend do something exactly similar to this with JAVA. I looked through his code, and he used a servlet that used a session variable. It stored a linked list as a session variable, and when you called the servlet with "?expandcustomer=5000", it would then re display the list, and expand out the customer with the ID of 5000. I'm looking to do something simliar in PHP but not really sure what would be the best method.
If someone could point me in the right direction as to (where to look in PHP manual ... certain functions) I would highly appreciate it.
Thanks
Shultas