SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Geneva
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP-MySQL-TreeView

    Hello,

    I am looking for a script or a solution which would do the following action : list the folders of my server in a PHP page as a treeview and in the same time dynamically insert the name of these folders in a table of MySQL database. In other words, when a folder is added to the server, it must appear automatically in my PHP page and in a field of a table of my database this allows to use it with another script.

    I hope my explanations to be clear...

    Thank you for your help,

    Sebastian

  2. #2
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Santille

    Do you still need help with this?

  3. #3
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Geneva
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Yes, of course, I need always some help...

    Thanks,

    seb

  4. #4
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK here we go. Not sure if it is working 100% correct but it seems to be working.

    I took an existing javascript script for the tree (reference to the source can be found in the php file.

    The php is written by me but just quickly. So I am sure you can make it more efficient.

    In the php file you can also find the database structure that I have used.

    There is also some folders that I had to test.

    Hope it works. Good luck
    Attached Files Attached Files

  5. #5
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  6. #6
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Geneva
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Stephan!
    Unfortunately I am not able to take you .zip file to test for the moment! (under Approval, what's that?)

    seb

  7. #7
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,025
    Mentioned
    211 Post(s)
    Tagged
    1 Thread(s)
    Under approval means that it needs to be approved before that anyone can see what's inside, of course


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •