简体   繁体   中英

Error: mysqli_stmt::get_result()

Error: mysqli_stmt::get_result() PHP: PHP: 7.0.8

I was thinking that this is about the PHP version. The host that my friend is using is pretty basic and does not have a option to change it on Cpanel

<?php
        $sql = $conn->prepare('SELECT * FROM categories WHERE region = "1"  ORDER BY id DESC ');
        $sql->execute();
        $result = $sql->get_result();

That's the line where it fails on. Am I right to think that ? Or is something else going on. If it is the version do I need to contact the host ? The wierd thing is it works on my own free hoster..

Sorry for the lack of information guys S: New here...

You are using Mysql Native and it is required to Mysql Native Driver

You should read Mysql Native Driver and mysqli_stmt::get_result

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM