Codeigniter Multiple Files Upload

I am going to show you how to upload multiple files using PHP based Codeigniter framework. There is file upload class, in Codeigniter, which permits you to upload the file or files. This class also permits you to set various preferences such as destination where the file will be uploaded, restriction on file types, restriction on file size, whether a…

Bookmark web page using Codeigniter and jQuery

Introduction This tutorial shows how to bookmark a current URL. We have already built-in functionality in most of the browsers and we can bookmark a URL there but it’s also like you have to go to the menu option. The below code do the same thing just in one click on the web page. User is given a link to…

Username Availability Check using PHP, AJAX and MySQL

Introduction This tutorial shows how to check username availability using PHP, AJAX and MySQL. Sometimes you need to check username availability instantly before a user presses the submit button after filling a long-sized signup form. In this case you can use AJAX with any technologies like PHP, CodeIgniter, Servlet, Struts, JSF, Spring, etc. for checking whether the input username is…

Codeigniter XChart Example

Introduction We know that xchart basically displays different statistical data on different chart types such as column chart, bar chart, line chart, pie chart etc. You can have a look at the URL http://tenxer.github.io/xcharts/ for more information. You can integrate xchart with any server side tehnology but here I will show you how to integrate xchart with Codeigniter framework. This…

Time Ago or Time To Go function in php

Introduction Time ago or time to go function in PHP shows how to display how much time already passed or how much time to go for a given date time. Generally you want to implement this kind of functionality in many scenarios like someone has posted comment on your blog, tutorial, product or article then you want to show how…

Display site maintenence message using Codeigniter

Introduction This example shows how we can display site maintenance message using Codeigniter 3 to the user. This tutorial will also teach you how to work with hooks in Codeigniter framework. We build the website and live our website but it does not mean that all worked have been done for the website and in future we will never update…

Backup Site and Database in Codeigniter

Introduction I will show you how to backup site or application code and database in PHP based Codeigniter framework. In the world of web it is important to take backup of our site and database frequently. You don’t know when you’d come across unexpected situation which causes your site stop working. Here I have developed an application in Codeigniter, which…

Submit form JavaScript onChange

Auto Submit HTML Form This tutorial example shows how to submit form automatically when a radio button is selected. The below example has two radio buttons and when one of them is selected then the form gets submitted automatically and displays the corresponding value. Sometimes you may need to submit the form automatically. Based on form submission, you may need…

Email address validation example in PHP

Introduction This example will show you how to validate email address using PHP programs. The email validation is an important part of the web application when you deal with email address otherwise invalid or bad email address may be stored in your server system. Email address is an important part of the application because for many situations you need to…

Dependent Dropdown Example in PHP, MySQL

Introduction This tutorial shows how to create dependent dropdown in PHP and MYSQL. This is also called cascaded dropdown. This tutorial uses JavaScript to submit the form automatically when the first dropdown value is selected. Sometimes you may need to create such a cascaded dropdown when you need to select some value in the second dropdown based on first dropdown…