update all row in codeigniter $this->db->update_batch() Generates an update string based on the data you supply, and runs the query. You can either pass …
Read MorePHP
Two submit buttons in one form
Two submit buttons in one form:: We can use more than one submit button in a single form. We can use more than one submit …
Read MoreHow to get the user browser information in Codeigniter::
How to get the user browser information in Codeigniter:: //For Ip Address:: $ip_address = $this->input->ip_address(); //For User Agent / Browser:: $this->load->library(‘user_agent’); if ($this->agent->is_browser()){ $agent = …
Read MoreSelect / Deselect all checkboxes using jQuery
Select / Deselect all checkboxes using jQuery: The HTML Structure is following type::The HTML Structure is following type:: <table> <tr> <td><input type=”checkbox” id=”checkbx_selectall” /> Select …
Read MoreOptimize Images in Google Page Speed
Optimize Images in Google Page Speed:: This rule triggers when PageSpeed Insights detects that the images on the page can be optimized to reduce their …
Read MorePhp- Remove index.php from url in Codeigniter
Php- Remove index.php from url in Codeigniter RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]
Read MorePhp – Remove index.php from url and redirect to https in Codeigniter
Php – Remove index.php from url and redirect to https in Codeigniter:: RewriteEngine on Rewritebase / RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] …
Read MorePhp – Define caching in Htaccess
Define caching in Htaccess:: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access …
Read MoreHOW TO SETUP A CDN TO SPEED UP YOUR WEBSITE
HOW TO SETUP A CDN TO SPEED UP YOUR WEBSITE:: If you’re looking for ways to speed up your website, one of the …
Read MoreCodeigniter – How to Join City Country State by concatenate two fields in Sql
Codeigniter – How to Join City Country State by concatenate two fields in Sql $this->db->select(” CONCAT(c.name,’-‘,co.code) as id,CONCAT(c.name,’ ,’,s.name,’ ,’,co.name) as text”,FALSE); $this->db->from(“city c”); $this->db->join(‘state …
Read More