LOOP PHP
Posted: Wed Feb 11, 2004 5:15 am
Hi all,
How can I write PHP code that shows (MultiLevel) result from MySQL,
I have this PRODUCTS table (MySQL):
categorey ................sub-categorey
=======================
Shampoo.................PertPlus
Shampoo.................SunSilk
Soup........................Lux
ToothPaste..............Creast
ToothPaste..............Signal2
ToothPaste..............Collgate
and I want to display ALL records * like this:
Shampoo
-----------PertPlus
-----------SunSlik
Soup
-----------Lux
ToothPaste
-----------Creast
-----------Signal2
-----------Collgate
Thank you!
How can I write PHP code that shows (MultiLevel) result from MySQL,
I have this PRODUCTS table (MySQL):
categorey ................sub-categorey
=======================
Shampoo.................PertPlus
Shampoo.................SunSilk
Soup........................Lux
ToothPaste..............Creast
ToothPaste..............Signal2
ToothPaste..............Collgate
and I want to display ALL records * like this:
Shampoo
-----------PertPlus
-----------SunSlik
Soup
-----------Lux
ToothPaste
-----------Creast
-----------Signal2
-----------Collgate
Thank you!