Your Daily Source for Apache News and Information |
Breaking News | Preferences | Contribute | Triggers | Link Us | Search | About |
[ Thanks to for this link. ]
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
About Triggers | Media Kit | Security | Triggers | Login |
All times are recorded in UTC. Linux is a trademark of Linus Torvalds. Powered by Linux 2.4, Apache 1.3, and PHP 4 Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy. |