Below is simple pagination script using PHP and MySQL. Pagination will be in following format. In this pagination script I have used form to submit the page drop down, so if you want to add one new form in your page then do check the form name and form id, so that it will not […]
Below is simple pagination script using PHP and MySQL. Links will be in following format. First | Previous | Next | Last CSS class for pagination link. Here are some required functions/methods which are used for Pagination. Pagination function Usage of Pagination function pagingPN() function will return result in array format with SQL query, record […]
Recently I was working on one REST API, in which I was sending API request using cURL and to send parameters I was using POST method. In one of the API request I wanted to send or upload a file through cURL, so I started working and got the solution for the same. Below is […]
Simple recursive function to search value in multidimensional array in php. Function will return array key(index) with respect to searched value. Just copy paste the function and start using. If searched values have multiple occurences in array, then it will return first found value key of an array. May this will help you!!!
To create SOAP server in CodeIgniter, it is better to use NuSOAP (SOAP Toolkit for PHP). So in one of my requirement I tried to integrate NuSOAP in CodeIgniter and it worked for me, so thought of sharing it. Download NuSOAP Toolkit from this URL: Download Below are the steps to create SOAP sever in […]
Just like my previous post on Export MySQL data to CSV file Using PHP, it is vice versa process i.e. to Import CSV data to MySQL Using PHP So here is simple CSV to MySQL import class written in PHP. Next add constructor function in class with two parameters database table name and CSV filename […]
Sometime we need MySQL data in CSV format and as we know CSV is good user readable format. So here is simple MySQL to CSV export class written in PHP. Next add constructor function in class with two parameters SQL query and CSV filename and in constructor function write MySQL database connection. Define database information […]