connect php to mysql from apache server
please can someone help to figure these things out. I wrote these codes to connect to my database but it is not connecting even when I assume that is connected to the database but it is not responding that is connected, this is the code
<?php
// connecting to Database
$db_server = 'localhost:3306';
$db_user = 'root';
$db_password = 'password';
$db_mysql_connect($db_server,$db_user,$db_password ) or die (' The connect could not be established');
$db_check = mysql_select_db ($db_name);
if (db)
echo 'connect to Database established';
?>
and this is the responds:-
Fatal error: Function name must be a string in C:\xampp\htdocs\connectionfile.php on line 7
but I can not figure it out.