title: How I can execute many queries in one page?
body: <p>I write this code but when I run it no output. There is no error but the problem no output.</p>
  <p>How I can execute many queries in the same page?</p>
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt; tran &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  $link = mysqli_connect('localhost', 'root', '', 'uoh');
  $query = &quot;SELECT * FROM `student_record` id = 201102887;&quot;;
  $query .= &quot;SELECT * FROM `course` where id = 201102887;&quot;; 
  
  if (mysqli_multi_query($link, $query)) {
  do {
      if ($result = mysqli_store_result($link)) {
          while ($row = mysqli_fetch_array($result)) 
  {
  echo $row['code'];
  echo $row['term'];
  }
  }   
  } while (mysqli_next_result($link));
  }
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>