Giter Club home page Giter Club logo

show-data-as-tree-view's Introduction

show-data-as-tree-view

show data as tree view (from database " mysql ")

about the project

🟠 this project help you to can show data as branch of tree. in across web you can find like this project but It may not be what you want! in other projects work on associative array where data already exist but in this project data already doesn't exist and with query, data find. if the parent has a child, it prints its children, and if there is no child, it goes to the next parent and continues the same process until there are no children left.

🔸The table(category) we use:

id title catid
1 car 0
2 Fruits 0
3 Dress 0
4 T-Shirt 3
5 Pants 3
6 Blue Jeans 5
7 Shoes 3
8 Buttons 6
9 Banana 2
10 Apple 2
11 Orange 2
12 red 10
13 AirPlane 0
14 Bmw 1
15 Mercedes-Benz 1
16 Volvo 1
17 Toyota 1
18 car wheel 14
19 car wheel 16
20 tire 18
21 Car wheels cover 20

🔸Result:
result of code

Usage

  • create database in phpmyadmin with name " tree_view " ✔️
  • sql file import on database " tree_view " ✔️
  • run file data.php ✔️

show-data-as-tree-view's People

Contributors

angus-33 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.