I want to show all of the data from my MySQL database to this PHP file. However, when I run the code, all of the data shows up, but the first data from the database is not showing up. I wonder is there any mistake in the code?
<?php
session_start();
include "db.php";
   echo'<table class="table table-bordered" >';
   echo"<tr>";
   echo"<td>No.</td>";
   echo"<td>Nama Masakan</td>";
   echo"<td>Jumlah</td>";
   echo"<td>Keterangan</td>";
   echo"<td></td>";
   echo"<td></td>";
   echo"<td></td>";
   echo"</tr>";
$query= mysql_query("SELECT * FROM `".$_SESSION["tabel"]."`");
if($row=mysql_fetch_row($query)>0){
   $i=1;
   
   
   while($row = mysql_fetch_array($query))
   {
       echo"<tr>";
    echo"<td>";
    echo $i;
    echo"</td>";
    echo"<td>{$row['nama_masakan']}</td>";
    echo"<td><input type='text' name='jumlah[]' id='jumlah$i' disabled='true' value='{$row['jumlah']}'/> </td>";
    echo"<td><input type='text' name='keterangan[]' id='keterangan$i' disabled='true' value='{$row['keterangan']}'/></td>";
    echo"<td><button type='button' name='edit' id='edit$i' onClick='edit($i)'>Edit</button></td>";
    echo"<td><button type='button' name='save' id='save$i' disabled='true' onClick='save($i)'>Save</button></td>";
    echo"<td><button type='button' name='delete' id='del$i' onClick='del($i)'>Del</button></td>";
    echo"</tr>";
    $i++;
   } 
  
} else{
echo "Tidak ada Pesanan Makanan"; 
}
 echo"</Table>";
?> 
</div> 
     
     
    