Install LAMP server on Ubuntu 16.10

Using following steps we can intall Apache , MySQL and PHP on Ubuntu 16.10 system.

1. First install Apache server

Open Terminal and write following command
Continue reading “Install LAMP server on Ubuntu 16.10”

Advertisements

Recursive category tree in php and mysql

Sometime you face problem in php to manipulate hierarchical data. This code will show you that how to display category tree in php. Here Mysql database used to store data. I have used here recursive method which search data in n Level . for example level 1 , level 2 , level 3 , level N…. as on. This simple code will work for multiple level as par your requirement. For example level 0 have ‘year’ category and its subcategory has ‘Jan’ ,’Feb’ as on. Continue reading “Recursive category tree in php and mysql”