Yes of course, you need to know the server (most likely "localhost") and your username and password for the db. Then you connect using the command "mysql_connect"
mysql_connect (string [server], string [username], string [password])
Lets say your username = "maxonon" and password was "themax"
$db = mysql_connect ("localhost", "maxonon","themax");
Of course this only returns the pointer $db. To get any info from the pointer you have to send a query to it.
$result = mysql_query("Select * from users", $db);
If successful, all the data is not in the $results 'variable' but you need to use yet another function to get the data out. There are many to do this but one is mysql_fetch_array
$aResults = mysql_fetch_array($result);
Do a print_r on a results and you will see the first row of your results.
print_r($aResults);
If you need all the results use mysql_fetch_array in a loop.
go to http://www.php.net/manual/en/ref.mysql.php for complete info