Hello,
I have some problem with php functions can anyone help me out with this
<?php
$db_host ="localhost";
$db_user ="my_cms";
$db_pass = "secret";
$db_name = "mypractice";
$connection = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
if(mysqli_connect_errno()) {
die("SQL Connection Failed: " .
mysqli_connect_error() .
"(" . mysqli_connect_errno() . ")"
);
}
?>
did'nt understood about the if condition and why the errno function is used again and if we had already written in if condition why we written again like we can use like this if(mysqli_connect_errno()) {die("SQL Connection Failed:");} lots of confusion can anyone help me out
Thank You