Redirect with PHP after ajax call $(‘#button_name’).click(function() { var save_sale = 1; $.ajax({ type: ‘GET’, url: ‘page.php’, data: {save_sale: save_sale}, success: function(data) { window.location.href = …
Read MorePHP
Getting Php Version Error :Declaration of MX_Lang
A PHP Error was encountered Severity: Warning Message: Declaration of MX_Lang::load($langfile, $lang = ”, $return = false, $add_suffix = true, $alt_path = ”, $_module = …
Read MoreCodeIgniter HMVC error after updating PHP to PHP 7
After updating 5.6 to PHP 7. I was using HMVC implementation of Code Igniter and PHP upgrade started throwing following errors:- A PHP Error was …
Read MoreCreate A button with function in Jquery
#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 MoreCheck 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 More