PHP MySQL Create Table

mysqli_query() function is used to create table in PHP. What is a table? A database table has its own unique name. Table consists of columns and rows. A table has … Read more

PHP MySQL Create Database

A database consists of one or more tables. The CREATE DATABASE statement is used to create a database in MySQL. It Is very easy to create a new MySQL database. … Read more

PHP MySQLi Connect

If you want to access data from MySQLi database, first you need to make connection with server. PHP 5 and later can work with a MySQL database using: MySQLi extension … Read more

PHP Multidimensional Array

PHP multidimensional array is an array of arrays. As the name suggests, every element in this array can be an array and they can also hold other sub-arrays within. A … Read more

PHP Associative Array

PHP allows you to associate name/label with each array elements using => symbol. It is also called key-value pair array. Creating PHP Associative Array  array() function is used to create associative … Read more

PHP Indexed Array

PHP Indexed Array is simple array with a numeric key. PHP indexed array is also known as numeric array. Indexed Arrays are arrays in which the elements are ordered based … Read more

PHP Switch Statement

switch statement is used to select one of many blocks of code to be executed. The switch statement is used to perform different actions based on different conditions. It works like PHP if-else-if statement. … Read more

PHP continue statement

The continue statement is one of the looping control keywords in PHP. It skips one iteration in the loop (rest of the statements in current iteration of loop are skipped after continue statement … Read more

PHP Break statement

The break keyword immediately ends the execution of the loop or switch structure. It ends execution of the current for, foreach, while, do-while or switch structure. If you use break inside inner loop, … Read more

PHP If Else

PHP if else statement is used to test condition. PHP If Else statements are also known as conditional statements. Types of if else in PHP if if-else if-else-if nested if … Read more