JQuery | Ajax is sending GET instead of POST  It's a very common problem which is faced by most of the new programer. In Ajax code, new learners use (type: "POST") yet the sending request went …

Last updated 2 years, 4 months ago | 3940 views

Tags:- JQuery Ajax

PHP | Add numbers of days to a date Simple and easy way to add some days in a given date using strtotime() function. <?php $p_date = "2019-01-10"; echo date('Y-m-d', strtotime($p_date . ' + 1 days')); echo …

Last updated 2 years ago | 2648 views

Tags:- PHP

PHP-MYSQL |  mysqli_fetch_assoc() VS  mysqli_fetch_array() mysqli_fetch_assoc() function fetch a result row as an associative array where as mysqli_fetch_array() function fetch a result row as an associative array, a numeric array, or both.       mysqli_fetch_assoc() The mysqli_fetch_assoc() …

Last updated 2 years, 4 months ago | 2260 views

PHP | Warning: A non-numeric value encountered This error occurs when you are trying to do a mathematical operation on an integer with a nun-numeric value or a string.  Info: New E_WARNING and E_NOTICE errors …

Last updated 1 year, 3 months ago | 1707 views

Tags:- PHP

JQuery | Uncaught TypeError: e.indexOf is not a function This error occurs because you may try to load an event handler which is removed from the latest version of jQuery. Event handler like .load(), .error(), …

Last updated 1 year, 3 months ago | 1601 views

Tags:- JQuery

Chart.js | Changing graph type based on dropdown selection We can’t directly update the chart type in Chart.js, to achieve the requirement we need to destroy the original chart and then redraw the new chart. …

Last updated 1 year, 1 month ago | 1485 views

Tags:- HTML JQuery JavaScript Chart

Codeigniter | Include image, CSS, and js file In Codeigniter, we need to load URL helper in the controller and then use the base_url() function to load the resources. // loading script <script type='text/javascript' src="<?php …

Last updated 1 year, 6 months ago | 1463 views

Tags:- CodeIgniter

Chart.js | show data values on top of each bar This is an example of displaying data value on top of each bar of Chart.js on the web page. Step 1: Create a basic HTML …

Last updated 1 year, 1 month ago | 1459 views

Tags:- HTML JQuery JavaScript Chart

PHP | Get URL with Parameter To get the full URL of a current page with GET parameters, we use the $_SERVER global variable. We need the current URL to perform different types of works. For …

Last updated 1 year, 7 months ago | 1375 views

Tags:- PHP

CSS | Show full text on hover In this article, we are going to see, how we can display full text on hover using CSS. Just suppose we have a text containing three or more …

Last updated 2 years, 4 months ago | 1253 views

Tags:- CSS

PHP | Combine two strings There are several ways to concatenate two strings in PHP. Use the concatenation operator [.] and [.=] There are two string operators that are used for concatenation. [.]:  Concatenation operator …

Last updated 1 year, 9 months ago | 1248 views

Tags:- PHP

PHP-MYSQL |  mysqli_fetch_object () VS  mysqli_fetch_array() mysqli_fetch_object()  fetch a result row as an object where as mysqli_fetch_array()  fetch a result row as an associative array, a numeric array, or both.       mysqli_fetch_object() The mysqli_fetch_object() function returns …

Last updated 2 years, 4 months ago | 1124 views

Tags:- PHP

Codeigniter | Set timezone To set default timezone in Codeigniter, you can add the date_default_timezone_set() function in your application/config.php or index.php file. date_default_timezone_set('your timezone');   <?php // India timezone date_default_timezone_set('Asia/Kolkata'); ?>  

Last updated 1 year, 6 months ago | 1110 views

Tags:- CodeIgniter

Chart.JS | Draw Bar chart from server data using MySQL, Ajax, and PHP This example shows how to draw a bar chart with data from the database server.  FILE STRUCTURE At the end of this …

Last updated 1 year ago | 1093 views

Tags:- HTML JQuery JavaScript PHP Chart Ajax PHP-MySQL

Codeigniter | SET or GET config variables The config set_item() & item() functions are work for SET and GET a config variable in codeigniter   In Codeigniter, by default, all config variables are located at the “application/config/config.php” …

Last updated 1 year, 6 months ago | 1063 views

Tags:- CodeIgniter