Answer the question
In order to leave comments, you need to log in
Why is mysqli_fetch_all function not returning anything?
I'm very, very asking for help. I've already broken my brain. Here is the tutorial code.
$link = mysqli_connect(DB_HOST,DB_LOGIN,DB_PASS,DB_NAME) or die(mysqli_connect_error());
$sql = 'SELECT id, name, email FROM catalog' ;
$result = mysqli_query($link,$sql);
$items = mysqli_fetch_all($result,MYSQLI_ASSOC);
mysqli_free_result($result);
echo var_dump($result);
Answer the question
In order to leave comments, you need to log in
Check your php version. Must be 5.3 or higher.
Well, MySQL Native Driver is needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question