Quote: (20:41:17) (@Mystic) I dont give a fuck about yo...
blade2k » articles & tutorials

jump to:
Tutorials » Tech » PHP

Simple MySQL Connect


Reading Article
Author: Haldred
Posted on 10/19/2004
print :: back to list
For those MySQL impared

F

or all those people, who can do anything, ONLY if they knew how to connect to MySQL. Here's the tutorial:

mysql_connect("host","user","pass");

Replace host with your host name, it's 95% of the time localhost. Replace user with the username, i.e. If I registered at light-hosters.com, as haldred, my username would be haldred, and my database would be haldred_db. Replace pass with your password. Easy as that.

Enjoy!