Pass PHP arrays to javascript using JSON

JSON(JavaScript Object Notation) which is used for exchanging and storing data. JSON is a text, using JSON convert the exchanging data to text between browser and server. PHP has some built-in functions to handle JSON. json_encode():which coverts a PHP value into a JSON value and it returns a string. We can use json_encode function to […]

Continue Reading

Export Data from Excel to Database in PHP Codeigniter using PHPExcel Library

This section cover how toimport Data from excel to Database(MySql)  in Codeigniter Framework by using PHPExcel library. For this follow the instructions given below, Step-1 : Open database.php file under application/config folder of your codeigniter application. update hostname, username, password and database. Step-2 : Open config.php file under application/config folder of your codeigniter application and fill […]

Continue Reading