PHP | header() function By sending the headers bellow, we change the browser’s default cache settings. We can override any of those settings and force the browser to not cache. In this code we just …

Last updated 7 years, 5 months ago | 2512 views

Tags:- PHP

PHP | What is difference between == and === operator? "==" and "===" The two operators are known as comparison operators. "==" (i.e. equal)  and === (i.e. identical) both are use to check values are …

Last updated 6 years, 11 months ago | 2509 views

Tags:- PHP

Mysql | Trigger The trigger can be defined as a database object just like a stored procedure. It is a set of actions that fires automatically when an event occurs in a database.   Triggers …

Last updated 6 years, 11 months ago | 2503 views

Tags:- MySQL

MySQL | Find the number of rows in a table We can use the below query to count the number of rows in a table >SELECT COUNT(*) FROM table_name;  

Last updated 7 years, 5 months ago | 2501 views

Tags:- MySQL

MySQL | What is the best collation to use for MySQL? Mostly we use: utf8_general_ci utf8_unicode_ci utf8_general_ci is used for fast sorting but it is less accurate whereas utf8_unicode_ci is used for better accuracy but …

Last updated 7 years, 5 months ago | 2498 views

Tags:- MySQL

Chart.js | Add bar chart in the webpage This is a simple example of using Chart.js to create a bar chart on the webpage.  Step 1: Create a basic HTML file called "chart.html"  <!DOCTYPE html> …

Last updated 6 years, 2 months ago | 2498 views

Tags:- HTML JQuery JavaScript Chart

PHP | The maximum size of a file that can be uploaded using PHP The default maximum size of a file that can be uploaded using PHP is 2MB. upload_max_filesize = 2M; and we can …

Last updated 7 years, 5 months ago | 2497 views

Tags:- PHP

PHP | Find the number of rows in a result set Bellow code is use for the same $sql = "SELECT * FROM table1"; $result = mysql_query($sql, $db_link); $num_rows = mysql_num_rows($result); echo $num_rows;  

Last updated 7 years, 5 months ago | 2493 views

Tags:- PHP PHP-MySQL

PHP | How to convert a string to an array? string to array There is a function in PHP called explode() which is used to convert any string to an array.    <?php $str = …

Last updated 6 years, 11 months ago | 2492 views

Tags:- PHP

PHP | What are default session times in PHP? By default, session variables last until the user closes the browser or leaves the site otherwise most of the server terminates the session variable if you …

Last updated 7 years, 5 months ago | 2486 views

Tags:- PHP

There are 5 different types of storage engine present in MySql. MyISAM Heap Merge INNO DB ISAM MyISAM is the default storage engine for MySQL

Last updated 7 years, 5 months ago | 2482 views

Tags:- MySQL PHP-MySQL

Enable errors in PHP There are two ways to enable error reporting in your PHP scripts: 1. You can add the following function in the the script: error_reporting(E_ALL); 2. You can add the following option in …

Last updated 6 years, 11 months ago | 2481 views

Tags:- PHP

PHP | What are data types in PHP? Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating-point numbers - …

Last updated 6 years, 11 months ago | 2480 views

Tags:- PHP

PHP | Remove duplicate value from an array  Duplicate value can remove from an array by using the array_unique function. If two or more array values are the same, the first appearance will be kept …

Last updated 6 years, 11 months ago | 2472 views

Tags:- PHP

PHP | What are superglobal/global variables? Superglobal is out of scope limitation. These variables can be accessed from any function, class, or file without doing anything special such as declaring any global variable, etc. These …

Last updated 6 years, 11 months ago | 2469 views

Tags:- PHP