mysql_select_db(): select database
Its syntax is: int mysql_select_db (string database_name [, int link_id])
<?
@mysql_connect("localhost", "web", "asdf") or die("Could not connect to MySQL server!");
@mysql_select_db("company") or die("Could not select company database!");
?>
Related examples in the same category