Hello Friends.

I was created a db and a table. When i was try connect the db not connected. Only open server don't connect db.
I was try many type of change the code but not get success. Please see the code. Please help me anyone.

Type 1.
<?php


$db_handle = mysql_connect("localhost","ssstcoin_Sar","mypassword");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

print "Connection to the Server opened";

$db_found = mysql_select_db( "localhost", $ssstcoin_dw ,$con);
if($db_found)
{print "db found";}
else{print "db not found";}

?>

Type 2.
<?php


$db_handle = mysql_connect("localhost","ssstcoin_Sar","mypassword");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

print "Connection to the Server opened";

$db_found = mysql_select_db($ssstcoin_dw ,$con);
if($db_found)
{print "db found";}
else{print "db not found";}

?>

Type 3.
<?php


$db_handle = mysql_connect("localhost","ssstcoin_Sar","mypassword");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

print "Connection to the Server opened";

$db_found = mysql_select_db( $database ,$link);
if($db_found)
{print "db found";}
else{print "db not found";}

?>

After uploaded the code see bellow error .

Connection to the Server opened<br />

<b>Warning</b>: mysql_select_db() expects at most 2 parameters, 3 given in <b>/home/ssstcoin/public_html/test.php</b> on line <b>12</b><br />
db not found<br/><br/><br/>