Before you can do anything with your database, you must create a table. A table is a section of the database for storing related information. In a table you will set up the different fields which will be used in that table. Because of this construction, nearly all of a site’s database needs can be satisfied using just one database.
MySQL Delete with PHP
Delete Data In a Database
The DELETE FROM statement is used to delete records from a database table.
Syntax
MySQL Update with PHP
Update Data In a Database
The UPDATE statement is used to update existing records in a table.
Syntax
MySQL Order By with PHP
The ORDER BY Keyword
The ORDER BY keyword is used to sort the data in a recordset.
The ORDER BY keyword sort the records in ascending order by default.
If you want to sort the records in a descending order, you can use the DESC keyword.
Read More
MySQL The Where Clause with PHP
The WHERE clause
The WHERE clause is used to extract only those records that fulfill a specified criterion.
Syntax
FROM table_name
WHERE column_name operator value
MySQL Select with PHP
Select Data From a Database Table
The SELECT statement is used to select data from a database.
Syntax
FROM table_name
MySQL Insert with PHP
Insert Data Into a Database Table
The INSERT INTO statement is used to add new records to a database table.
Syntax
It is possible to write the INSERT INTO statement in two forms.
Creating MySQL Database and Tables with PHP
Create a Database
The CREATE DATABASE statement is used to create a database in MySQL.
We must add the CREATE DATABASE statement to the mysqli_query() function to execute the command.
Connecting to the MySQL Server with PHP
Use the PHP mysqli_connect() function to open a new connection to the MySQL server.
Open a Connection to the MySQL Server
Before we can access data in a database, we must open a connection to the MySQL server.
Installing PHP on Windows Server 2012
Installing PHP with Web PI
1. Open the Web PI application from the following location on your filesystem.
C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe
Note: If the Web PI application is not currently installed it can be downloaded.