title: How to do mysql_fetch_assoc in mysqli?
body: <p>How can I do the following in mysqli prepare statement?</p>
  
  <pre><code>$result = mysql_query($sql);
  $data = mysql_fetch_assoc($result);
  return $data:
  </code></pre>