HDTuto.com

Codeigniter


Form Validation Error Messages in Codeigniter

Here, i want to show you how to display form validation error message in codeigniter project. we will use codeigniter 3 server side form validation and display error messages on front side. you can follow this article and you can learn to implement codeigniter form validation error message display. Form Validation is a primary requirement of every project, so i will give you simple example of for.....

Posted On August 15, 2019

Dynamically Add Input Fields and Submit to Database with Jquery and Codeigniter

In this artical, i will let you know how to create dynamically add/remove input fields and submit to database in codeigniter 3 app. we can create add more input fields functionality using jquery codeigniter. We will create very simple example of add more functionality in codeigniter 3 project. we can easily multiple records insert to database at a time in your php codeigniter project. In this ex.....

Posted On July 21, 2019

Codeigniter Upload Image and Compress

In this artical, i would like to show you how to compress image before upload in codeigniter application. we will reduce size and resize of image in codeigniter. we can compress image like png, jpg, jpeg, gif etc. This example will help you to reduce size of image file like, if user uploaded 2mb file then it will compress in 400kb or something as you want less compress. You have to just follow .....

Posted On June 24, 2019

Codeigniter multiple file upload with example

I will let you know multiple image upload in codeigniter with simple example. you can learn php codeigniter upload multiple images and store to database. we will use upload library for upload multiple files in codeigniter. We almost need to implement multiple images or files feature in our project. so you can simply understand and you can implement your existing project with multiple file uploa.....

Posted On June 16, 2019

Codeigniter 3 - Order by random records from mysql database example

If you are finding way to how to get random records from mysql table in codeigniter project then you are a right place. You can easily get random rows using codeigniter query builder order_by. here you will see the example of getting random result using order_by in codeigniter 3. In order_by(), we have to pass two argument parameter, one is a column name and another is a 'RANDOM' then codeigniter.....

Posted On July 19, 2018

How to use multiple where condition in Codeigniter?

Hi Guys, Here, i will show you how to write multiple condition in where clause using codeigniter 3 Query Builder class. Codeigniter provide set class function for each mysql function like where clause, join etc. So same for where clause, they provide "$this->db->where($array);", so we can use easily. In this tutorial, you can see two way to add multiple where condition in your codeigniter applica.....

Posted On July 19, 2018

How to insert multiple rows in Codeigniter?

In this tutorial, we will learn how to insert multiple records into a MySQL table using CI's active records library. Sometime, We may require to insert multiple rows instead of single records. It also takes a few time and adds multiple rows in a database table. Codeigniter 3 have an active records library and they provide insert_batch() to create multiple records at a time. So I also added a smal.....

Posted On July 19, 2018

Codeigniter 3 - How to get all routes?

Hello Developer, In this tutorial, i will show you how to get all routes list in codeigniter application. Actually, few days ago i was creating one example on codeigniter 3 project. But when i access route from url it show me 404 not found page. i thought error from index.php or something, but tried that way and nothing happen. Then i plan to get list of all routes and check i created route succ.....

Posted On July 13, 2018

How to remove index.php from url in Codeigniter 3?

Here, I will let you know how to remove inde.php from url using .htaccess in codeigniter project. As we know, codeigniter run index.php and with another route, it's come with index.php file in url. I had same issue on my ubuntu. when i was working on my client project on localhost. i did remove index.php file from url using htaccess file. So, here you have to simply write below code on your .htac.....

Posted On July 12, 2018

PHP Codeigniter 3 - JQuery Ajax Form Validation Example

Hi Guys, Today we will learn how to add ajax form validation in codeigniter using javascript. we will create contact us form and form submit using ajax in codeigniter 3 app. we will use validation library of codeigniter and print error messages using ajax. We will implement server-side validation rules in codeigniter application on form submission using ajax. It is very simple to use ajax valid.....

Posted On June 5, 2018

Blog Search