- 1 Heptio Debuts Gimbal Kubernetes Load Balancer Project
- 2 Spectre and Meltdown's Critical Impact on Cloud Providers and Customers
- 3 Tips and Tricks for Detecting Insider Threats
- 4 Red Hat Enterprise Linux 7.5 Debuts with Improved Server Admin Features
- 5 Opportunity Lost: Enterprises Could Slash Cloud Costs by 36 Percent
Connecting to MySQL with PHP
Excerpt:
In this scriptlet, we will cover how to connect to MySQL
with PHP.
Note:
This scriptlet is not intended to cover all of the
possibilities of PHP and MySQL interaction. It is
to help with the understanding of making the
database connection.
First, we make the connection using the PHP function mysql_connect()
The 3 arguments we'll be passing to the function are:
1. MySQL Server Hostname - This will typically be localhost, unless
you're using a remote database.
2. MySQL user name - The user name with access to the db.
3. MySQL user password - The password for said user name.
Scriptlet Url:
http://php.lansystems.com/index.php?archive=mysql_connections.inc