April 2026
Intermediate
1009 pages
34h 15m
English
Once MySQL has been installed and configured, the rest is no longer a major problem. The most important steps now are establishing a connection, sending SQL commands, and, if necessary, checking the return values. This is exactly what you will see in this section. As a basis, we use the newly created PHP database and our user named user.
The function for establishing the connection is called mysqli_connect(). You can specify up to six parameters, all of which are optional (thanks to the configuration options in php.ini):
Server name
User name
Password
Name of the database (catalog)
Port number
Name of the socket to be used
The return value is a handle for the connection, ...
Read now
Unlock full access