<?php
// Retrieve data from database
$list_selectinfo = "SELECT * FROM $tbl_name";
$list_res = mysql_query($list_selectinfo);
$rows = mysql_fetch_array($list_res);// See comment:
This pulls the first row from the result set out but then you later:
<?php
while($rows=mysql_fetch_array($list_res)){
Which attempts to loop over the remaining results. So if you have two results I would expect to see only one. However if you had more than 2 I would expect to see that amount minus 1.