Řadím to takhle:
elseif ($select_option == "1")
{
$items_per_page = 10;
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
$result = dbquery("SELECT * FROM ".DB_PREFIX."dbmovies ORDER BY movie_title ASC LIMIT $rowstart,$items_per_page");
echo "<table width='100%' class='tbl-border' cellpadding='0' cellspacing='1'>";
echo "<tr><td align='center' class='tbl2'>";
echo "<strong>".$locale['dbm_042']."</strong>";
echo "</td></tr>";
echo "</table>";
tablebreak();
$rows_entries = dbcount("(movie_id)", "dbmovies");
echo "<table width='100%' class='tbl-border' cellpadding='0' cellspacing='1'>";
while ($data = dbarray($result))
{
movieitem(d);
}
echo "</table>";
// Navigace
if ($rows_entries > $items_per_page) echo"<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows_entries,3,"?select_option=1&select_option2=0&fulltext=&")."\n</div>\n";
}