mysql_connect or mysql_select_db are deprecated since PHP5.x. It seems that the best way to deal with this is to add an i, such as mysqli_connect or mysqli_select_db.
However, there is one caveat to this.
mysql_select_db(*connection*, *db_name*);
mysqli_select_db(*db_name*, *connection*);
The order of arguments at select_db is different between mysql and mysqli, as shown in the following example.