get_result() Doesn't Work even mysqlnd is enabled
<p>It might be a duplication of many questions however i dont seem to get my answer from any of the questions present.I am using <code>multi domain linux hosting</code> provided by hostgator.I tried to use <code>mysqli_stmt_get_result()</code> but it throws me an error stating as an<code>undefined method</code>.I contacted the hostgator admin panel and they enabled the mysqlnd extension for me.I do see the mysqlnd extension enabled in   phpinfo of my website.However i still see the same error.</p>

<pre><code>$mysqlnd = function_exists('mysqli_stmt_get_result');

if ($mysqlnd) {
    echo 'mysqlnd enabled!';
}
else
   var_dump("nope");
</code></pre>

<p>I tried to check if it is enabled or not , it says <code>nope</code> but i do see mysqlnd as enabled in my <code>phpinfo</code>.</p>

<p>What is the problem and how can i solve this one ? Plus using with any other method is not an option because i have already coded the whole project using <code>mysqli_stmt_get_result()</code>.</p>

<p>Update:</p>

<p><a href="https://i.stack.imgur.com/y32Ju.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y32Ju.png" alt="Mysqli"></a></p>

<p><a href="https://i.stack.imgur.com/9vh75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9vh75.png" alt="mysqlnd"></a></p>

<p>Query:</p>

<pre><code> $stmt=$this-&gt;link-&gt;prepare("SELECT `Session_Data`,`ip_address` FROM Session WHERE `Session_Id` = ? AND `Session_Expires` &gt; '".date('Y-m-d H:i:s')."'");

        $stmt-&gt;bind_param("s",$id);
        $stmt-&gt;execute();
         $res=$stmt-&gt;get_result();
</code></pre>