or_where condition in Codeigniter

CodeIgniter is a framework based on MVC principles. As a result, you would usually separate application logic, data abstraction and “output” into their respective areas for CodeIgniter use. In this case: controllers, models and views. When someone trying to or conditions using the active record database library in Codeigniter. This function is identical to the […]

How to get latitude and longitude from google map using Codeigniter

In this article, you’ll know how to get latitude and longitude from address using Google Maps API in Codeigniter. Here we’ll combine all code into a Codeigniter function and you only need to use this function to find latitude and longitude from an address. You can need first create API PHP Code And if you […]

Email send Using Angularjs and PHP

In the following example you learn how to Email sending with AngularJS and PHP <script src = “scripts/form.js”></script> <div class=”container” ng-app=”formApp” ng-controller=”formController”> <div class=”col-md-6 col-md-offset-3″> <!– PAGE TITLE –> <div class=”page-header”> <h1><span class=”glyphicon glyphicon-tower” style=”font-size:20px”></span><span style=”font-size:20px; margin-left:10px;”>Send a direct e-mail to us</span></h1> </div> <!– SHOW ERROR/SUCCESS MESSAGES –> <div id=”messages” class=”well” ng-show=”message”></div> <!– FORM –> […]

How to Preview image before upload with dynamically created input file using Jquery

One thing that jQuery makes really easy is accessing and dynamically modifying the image preview before upload. In popular networking sites such as Facebook and Linkedin, you might have observed the feature called Image Preview. Preview images before the upload are the most required feature for file upload functionality. It helps the user to view […]

How to integrate jQuery Fullcalendar using Codeigniter and MySQL

Today, I would like to share with you integration of jQuery full calendar events using Codeigniter and MySQL. Fullcalendar is jquery library that provide us to display calendar with events and more. Fullcalendar js provide year, month, week and day calendar for displaying. If you are working on event management, task management or any thing […]

Multi-Language Support to Website using PHP

We will create multi-language supported page. here I will use Spanish Language with English. you can set another else. Create a separate PHP file for languages e.g. lang_en.php, lang_sp.php, etc. and define constants variable in it. Include the file according to language selection and use the constant variables in the place of string text on the […]

How to get Average value in MySQL table column using Codeigniter

Codeigniter provides the select_avg method to get the average value in the MySQL table column. Writes a “SELECT AVG(field)” portion for your query. As with select_max(), You can optionally include a second parameter to rename the resulting field. Let’s create a select_avg method in codeigniter