mysql_select_db(): select database : mysql_select_db « MySQL Database « PHP






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

1.Create guestbook table
2.Using MySQL with PHP
3.Opening a Connection and Selecting a Database
4.mysql_select_db.php
5.mysql_select_db.php