wd-scripts.blogspot.com — You use the mysql_connect function and the mysql_select_db function at the same time in 1 new function created by you. Saves up a few seconds of your time. ;) So actually, you just call 1 PHP function: < ?php connect_db("localhost","username","password","database") ? > and VOILA!!! you are connected to your database!........................