PHP

(PHP) Tutorial How to implement simple Google reCAPTCHA on your form

Screenshot :     Required and Included on this source : Bootstrap.css (just for styling)   Register reCAPTCHA from Google open google reCAPTCHA admin page to register a new site https://www.google.com/recaptcha/admin     Register your site, choose the type of reCAPTCHA V2. Enter your domain list that using this reCAPTCHA, you can add more than 1 domain here. Then Click Register.   After that. You will get Site key and Secret Key. Site Key is for client side. Secret Key is for server side   Source Code index.php (client side)   submit.php (server side)   nb: replace YOUR_SITE_KEY and YOUR_SECRET_KEY

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Server-side DataTables Bootstrap with Custom Filter

Screenshot :   Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.1.0 –> Download jQuery 2.2.3 –> Download Bootstrap 3.3.7 –> Download DataTables 1.10.12 –> Download   Database and Query : or you can download sample data here : example.sql   Configuring Codeigniter : assets folder structure : Routing path : config/route.php Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 + Source Code model : Customers_model.php path : application/models/Customers_model.php   Controller Customers.php path : applications/controllers/Customers.php

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Simple Server-side DataTables Bootstrap with ColVis (Column Visibility Extension)

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.1.0 –> Download jQuery 2.2.3 –> Download Bootstrap 3.3.7 –> Download DataTables 1.10.12 –> Download dataTables.colVis.css –> Download dataTables.colVis.js –> Download dataTables colVis site –> https://datatables.net/extensions/colvis   Database and Query : or you can download sample data here : example.sql   Configuring Codeigniter : assets folder structure : Routing path : config/route.php Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 + Source Code model :

Read More...

CodeIgniter, MySQL

(Codeigniter) Simple Server-side Datatables bootstrap style example

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.1.0 –> Download jQuery 2.2.3 –> Download DataTables 1.10.12 –> Download   Database and Query : or you can download sample data here : example.sql   Configuring Codeigniter : assets folder structure :   Routing path : config/route.php Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 + Source Code model : Customers_model.php path : application/models/Customers_model.php   Controller Customers.php path : applications/controllers/Customers.php   view : customers_view.php

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Ajax CRUD using Bootstrap modals and DataTables with Bulk Delete

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.1.0 –> Download jQuery 2.1.4 –> Download Twitter Bootstrap 3.3.7 –> Download Bootstrap-datepicker 1.6.1 –> Download DataTables 1.10.12 –> Download   Database and Query : Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 +   Source Code model : Person_model.php path : application/models/Person_model.php   Controller Person.php path : applications/controllers/Person.php   view : person_view.php

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Ajax CRUD using Bootstrap modals and DataTables with image upload

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.1.0 –> Download jQuery 2.1.4 –> Download Twitter Bootstrap 3.3.7 –> Download Bootstrap-datepicker 1.6.1 –> Download DataTables 1.10.12 –> Download Database and Query :     Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 +   Source Code model : Person_model.php path : application/models/Person_model.php     Controller Person.php path : applications/controllers/Person.php   view

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Simple server-side DataTables example

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.0.6 –> Download jQuery 2.2.3 –> Download DataTables 1.10.11 –> Download   Database and Query : or you can download sample data here : example.sql   Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 +   Source Code model : Customers_model.php path : application/models/Customers_model.php   Controller Customers.php path : applications/controllers/Customers.php   view :

Read More...

CodeIgniter

(Codeigniter) Dynamic base_url() and site_url() Codeigniter 3.0.3 +

For security reason codeigniter 3.0.3 or later $config[‘base_url’] must be configure manually. check this article -> https://www.codeigniter.com/userguide3/installation/upgrade_303.html When $config[‘base_url’] is not set, CodeIgniter tries to automatically detect what your website’s base URL is. This is done purely for convenience when you are starting development of a new application. Auto-detection is never reliable and also has security implications, which is why you should always have it manually configured! One of the changes in CodeIgniter 3.0.3 is how this auto-detection works, and more specifically it now falls back to the server’s IP address instead of the hostname requested by the client. Therefore,

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Ajax CRUD using Bootstrap modals and DataTables with server-side validation

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.0.2 –> Download jQuery 2.1.4 –> Download Twitter Bootstrap 3.3.5 –> Download Bootstrap-datepicker 1.4.0 –> Download DataTables 1.10.7 –> Download   Database and Query : Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 + in this source leave empty because using codeigniter 3.0 Source Code model : Person_model.php path : application/models/Person_model.php   Controller

Read More...

CodeIgniter, jQuery, MySQL

(Codeigniter) Ajax CRUD using Bootstrap modals and DataTables

Screenshot : Required and Included on this source : PHP+ MySQL or you may use XAMPP –> Download Codeigniter 3.0 –> Download jQuery 2.1.4 –> Download Twitter Bootstrap 3.3.5 –> Download Bootstrap-datepicker 1.4.0 –> Download DataTables 1.10.7 –> Download   Database and Query :   Configuring Codeigniter : assets folder structure : Routing path : config/route.php   Base URL Cofig (required if using Codeigniter 3.0.3 or later) path : config/config.php see for dynamic base_url : Dynamic base_url() and site_url() Codeigniter 3.0.3 + in this source leave empty because using codeigniter 3.0 Source Code model : Person_model.php path : application/models/Person_model.php  

Read More...