Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
Connecting to MySQL with PHP
(Dec 2nd, 22:12:28 )

[ 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


Printed from Apache Today (https://apachetoday.com).
https://apachetoday.com/news_story.php3?ltsn=2000-12-02-001-06-NW-PH-MQ

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
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/