#Create A button with function in Jquery var fav_del = ‘<i class=”fa fa-trash-o” aria-hidden=”true”></i>’; var fav_del = ‘<i class=”fa fa-trash-o” aria-hidden=”true”></i>’; var delete_btn = $(“<button/>”).attr({ …
Read MoreCodeIgniter
Check if Valid Email Address or Not in Codeigniter
Check if Valid Email Address or Not in Codeigniter if(filter_var($email, FILTER_VALIDATE_EMAIL)) { }
Read MoreGet the Current URL in PHP
Get the Current URL in PHP Both HTTP and HTTPS, $CURRENT_PATH = (isset($_SERVER[‘HTTPS’]) ? “https” : “http”) . “://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
Read MoreGet the full URL in PHP
#Get the full URL in PHP $CURRENT_PATH = ‘http://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘PHP_SELF’];
Read MorePagination in Codeigniter php
//Pagination url $paging_url = ‘Your Page Url’; $show_per_page = 3; $config = array(); $config[“base_url”] = $paging_url; $config[“total_rows”] = $total_row; $config[“per_page”] = $show_per_page; $config[‘use_page_numbers’] = TRUE; …
Read MoreDate Formats in php
Date Formats in php d – The day of the month (from 01 to 31) D – A textual representation of a day (three …
Read Morehow to get ip address in codeigniter?
how to get ip address in codeigniter? Codeigniter Input User Guide (ip_address) $ip = $this->input->ip_address(); echo $ip;
Read MoreHow to update a column value with the current column value plus an increment in codeigniter?
How to update a column value with the current column value plus an increment in codeigniter?How to update a column value with the current column …
Read MoreUpdate the value of a field in database by 1 using codeigniter
Update the value of a field in database by 1 using codeigniter $this->db->set(‘usage’, ‘usage+1’, FALSE); $this->db->where(‘tag’, ‘java’); $this->db->update(‘tags’);
Read More