I have a problem with get_result()
function.
The php script on my localhost
working well but on the server have this error
Fatal error: Call to undefined method mysqli_stmt::get_result()
I searched many times but I didn't find the solution. My code:
$sql=$db->prepare("SELECT * FROM `news` WHERE cat = ? order by id desc limit 10");
$cat=$_GET['cat'];
$sql->bind_param('i', $cat);
$sql->execute();
$result=$sql->get_result();
if($result){
while ($row = $result->fetch_array()) { echo "something"; }
(Both "mysqli" and "mysqlnd" are installed. )
what i have to do now ?