Error displaying php fetching data from mysql

<?php
header("content-type:text/html;charset=utf-8");
$conn=mysql_connect("localhost","root","root") or die("!");
mysql_select_db("student");
mysql_query("set names utf8");
$rs=mysql_query("select * from stu_grade");

echo "<table width="900" border="1" bordercolor="blue">";
echo "<tr>";
echo "<th>ID</th>";
echo "<th></th>";
echo "<th></th>";
echo "</tr>";

while ($row=mysql_fetch_row($rs)) {
    echo "<tr>";
    echo "<td>{$row[0]}<td>";    
    echo "<td>{$row[1]}<td>";
    echo "<td>{$row[2]}<td>";
    echo "</tr>";
}
echo "</table>";

?>

Dec.17,2021

echo "< tr >";
echo "< td > {$row [0]} < / td >";
echo "< td > {$row [1]} < / td >";
echo "< td > {$row [2]} < / td >";
echo "< / tr >";

change it to this.

it is recommended to learn mysqli or pdo, directly

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aa99-2c224.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aa99-2c224.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?