while ($row = @mysql_fetch_assoc($result)) {
?>
if ($row['jmeno'] != '') {
echo htmlspecialchars($row['jmeno']);
}
?>
| 01.01.1970 } ?> // navigace echo " ".$nav_links." "; ?> |
include 'config.php'; include 'pager.php'; $stranka = new MyPagina; $sql = mysql_query("SELECT MAX(id) as maximum FROM prispevky"); $sql_res = mysql_fetch_assoc($sql); $maxi = $sql_res['maximum'] - 20; $stranka->sql = "SELECT * FROM prispevky WHERE id <= $maxi ORDER BY datum DESC"; $result = $stranka->get_page_result(); // result set $num_rows = $stranka->get_page_num_rows(); // number of records in result set $nav_links = $stranka->navigation(" ", "currentStyle"); // the navigation links (define a CSS class selector for the current link) $nav_info = $stranka->page_info("to"); // information about the number of records on page ("to" is the text between the number) $simple_nav_links = $stranka->back_forward_link(); // the navigation with only the back and forward links //$total_recs = $stranka->get_total_rows(); // the total number of records ?>
while ($row = @mysql_fetch_assoc($result)) {
?>
if ($row['jmeno'] != '') {
echo htmlspecialchars($row['jmeno']);
}
?>
| 01.01.1970 } ?> // navigace echo " ".$nav_links." "; ?> |