Hi,
You can connect to a MySQL server with the following function :
mysql_connect(HOST, USER, PASS);
The function wil return the mysql socket and all input variables are strings.
But if you had take a look @ the php manual you have found the function yourself 🙂