title: Fatal error: Uncaught Error: Call to undefined method mysqli::execute()
body: <p>I am learning php. I am getting this error</p>
  <blockquote>
  <p>Fatal error: Uncaught Error: Call to undefined method mysqli::execute() in C:\xampp\htdocs\search\index.php:58 Stack trace: #0 {main} thrown in C:\xampp\htdocs\search\index.php on line 58</p>
  </blockquote>
  <p>Here the line 58 is</p>
  <pre><code>&lt;?php
      include'config.php';
      $stmt=$conn-&gt;prepare(&quot;SELECT * FROM info&quot;);
      $conn-&gt;execute(); // This line
      $result=$stmt-&gt;get_result();
   ?&gt;                            
  </code></pre>
  <p>I am trying to create a simple live search.</p>