$link = mysql_connect($db_host, $db_user, $db_password);
if (!$link) {
die ("MySQL Connection error");
}
mysql_select_db($db_name, $link) or die ("Wrong MySQL Database");
i tried to code some lines if $link or $db_name not ok echo some text
something like this
if (!$link || !$db_name) {
echo 'Some Text Here';
}
but it didn't work
please how i can do that ?