Create Category tree with PHP and mysql
Category List:

User Tree Listing will be displayed below(if any user will be in database):

    • Hardware
      • Printers
        • Inkjet printers
          • Laserjet Printers
          • Monitors
            • LCD monitors
              • TFT monitors
            • Software
              • Antivirus
              • Movies
                • Action movies
                  • Comedy Movies
                    • Romantic movie
                      • Thriller Movies
                      • Clothes
                        • Mens
                          • Shirts
                            • T-shirts
                              • Shirts
                                • Jeans
                                  • Accessories
                                    • Watches
                                      • Tie
                                        • cufflinks
                                      • Womens
                                        • Tees
                                          • Skirts
                                            • Leggins
                                              • Jeans
                                                • Accessories
                                                  • Earrings
                                                    • Bracelets
                                                      • Necklaces
                                                        • Pendants