I write this code but when I run it no output. There is no error but the problem no output.
How I can execute many queries in the same page?
<html>
<head>
<title> tran </title>
</head>
<body>
<?php
$link = mysqli_connect('localhost', 'root', '', 'uoh');
$query = "SELECT * FROM `student_record` id = 201102887;";
$query .= "SELECT * FROM `course` where id = 201102887;";
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));
}
?>
</body>
</html>