I have a simple sql function that works when called from wamp's mysql console. But when i try to fetch it in php it gives me error. I literally copy the content of mysqli_query and paste it into console and it works just fine, but in php gives me error. It sounds so simple, but I just can't resolve it whole day.
Summary of the code:
$ArrivalDate = mysqli_query(
$dbCon,
"select arrival('2017-03-09' , '2017-01-05' , '2017-01-05');"
);
$result = mysqli_fetch_row($ArrivalDate);
And this gives me that
Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given