how can i get all field when click on record
i have table get all record on summary from table on database , i need when click om one record , get me all field of record on other text type 

here is my code 

    echo '<table class="table-long">
    <thead>
    <tr>
    <th>hotel name</th>
    <th>hotel addres</th>
    <th>hotel rank</th>
    <th>duration from </th>
    <th>duration to </th>
    <th>rooms class </th>
    <th>duration to </th>
    </tr>
    </thead>';
    
    while($row = mysql_fetch_array($result))
      {
      echo "<tbody><tr>";
      echo "<td>" . $row['hotel_name'] . "</td>";
      echo "<td>" . $row['hotel_addres'] . "</td>";
      echo "<td>" . $row['hotel_rank'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_from'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_to'] . "</td>";
      echo "<td>" . $row['rooms_class'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_to'] . "</td>";
      echo "</tr></tbody>";
      }
    echo "</table>";
how can i get all field when click on record
===

i have table get all record on summary from table on database , i need when click om one record , get me all field of record on other text type 

here is my code 

    echo '<table class="table-long">
    <thead>
    <tr>
    <th>hotel name</th>
    <th>hotel addres</th>
    <th>hotel rank</th>
    <th>duration from </th>
    <th>duration to </th>
    <th>rooms class </th>
    <th>duration to </th>
    </tr>
    </thead>';
    
    while($row = mysql_fetch_array($result))
      {
      echo "<tbody><tr>";
      echo "<td>" . $row['hotel_name'] . "</td>";
      echo "<td>" . $row['hotel_addres'] . "</td>";
      echo "<td>" . $row['hotel_rank'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_from'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_to'] . "</td>";
      echo "<td>" . $row['rooms_class'] . "</td>";
      echo "<td>" . $row['hotel_price_duration_to'] . "</td>";
      echo "</tr></tbody>";
      }
    echo "</table>";