<?php $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") or die("Could not connect"); echo "Connected successfully";dbx_close($link);?>