I've just started to look into mysqli. When I make the mysqli connection with the database I am having a problem with the function.
My Code:
$link=mysqli_connect("host", "user","password","database_name", true) or die ('I cannot connect to the database because: ' . mysqli_connect_error());
$query="CALL `database_name`.`table_name`('107','0100000000',63,122)";
$result=mysqli_query($link,$query);
$rs = mysqli_fetch_array($result);
$image = $rs['image'];
$title = $rs['title'];
echo $title;
mysqli_close($link);
When I execute this in my PHP code it throws an error.
Error:
Can't connect to MySQL server on 'host_name' (110)
But when I use it with MySQL extension it works fine.