jeudi 26 novembre 2015

convert to nested format php

I just want some help in displaying the correct structure of the image data below. Basically what i want is to display it in nested form. From the data below, I would like it to display like this:

  • Engel (parent which parent_id = 0)
    • Chest Fridge - Freezers
      • Small Engel
      • digital platinum
    • Upright Fridge
      • Built-in fridge
    • Fridge Accessories
      • Blankets
      • Carry handles

enter image description here

I hope anyone can help me. Im using php fyi.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1QKnHZb
via IFTTT

Aucun commentaire:

Enregistrer un commentaire