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.Please Guide me where i am doing mistake.
Thanks