# json_decode in array php http://php.net/manual/en/function.json-decode.php As per the documentation, you need to specify if you want an associative array instead of an object from json_decode, …
Read Morehash_hmac hash in php
hash_hmac — Generate a keyed hash value using the HMAC method string hash_hmac ( string $algo , string $data , string $key [, bool $raw_output …
Read MoreCodeIgniter HMVC error after updating PHP to PHP 7
CodeIgniter HMVC error after updating PHP to PHP 7:: After updating the php version 5.6 to 7.2 it is showing fatal errors and warnings etc. …
Read MoreFatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in php7
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in php7 # codeIgniter use mysql_real_escape_string() instead.database connection issue Answer: Use $this->db->escape_str($name); OR $new_name = …
Read MoreOpen and Close a ul after every 3rd li in php
<!DOCTYPE html> <html lang=”en”> <head> <title>Bootstrap Example</title> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css“> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js“></script> <script …
Read MoreAlternative Control Structure
# Alternative Control Structure (if-else, while, foreach etc) <table> <? while ($record = mysql_fetch_assoc($rs)): ?> <? if (!$record[‘deleted’]): ?> …
Read Moreincrease input box numbers by clicking plus sign
increase input box numbers by clicking plus sign:: <script> $(document).ready(function() { $(“.input a”).click(function() { var inputEl = $(this).parent().parent().children().next().children(); var qty = inputEl.val(); if ($(this).parent().hasClass(“plus”)) qty++; …
Read MoreDisable cache in server using htaccess
Disable cache in server using htaccess after refreshing showing same page in Codeigniter, after logout in showing active sessions again in codeigniter, stores in caching …
Read Moreapache – XAMPP installation on Win 8.1 with UAC Warning
Showing in apache – XAMPP installation on Win 8.1 with UAC Warning Question: I am trying to install Xampp win32-1.8.2 on Windows 8.1. I get a …
Read MoreWhat is difference between datetime and timestamp?
Datetime is a datatype. Timestamp is a method for row versioning. In fact, in sql server 2008 this column type was renamed (i.e. timestamp is …
Read More