Tu ievadiiji nepareizu paroli vai lietotaaja vaardu!!!

"; exit; } else {} } auth(); session_start(); include("admin/includes/db_config.php"); include("admin/includes/mysql.lib.php"); $obj=new connect; ?> Simple Guestbook
query($sqlSave); header("Location: http://www.kapaok.lv/apspriede/index.php"); } ?>

OK Kāpa kluba apspriede


Ieraksties šeit

Vārds:
Komentārs:
 
'; $cur_page = $_GET['cur_page']; $get_page = $cur_page + 1; if (!isset($cur_page)) { $cur_page = 0; } $num_rows = 20; $start = $cur_page * $num_rows; $sql="select * from table_guestbook order by id desc"; $obj->query($sql); $num_records = $obj->num_rows(); $pages = ceil($num_records / $num_rows); $last_page = $pages - 1; if ($cur_page > 0) { $prev_page = $cur_page - 1; $next_page = ''; echo ""; } if ($cur_page == 0) { echo ""; } echo ""; if ($get_page < $pages) { $next_page = $cur_page + 1; $prev_page = ''; echo ""; } else { echo ""; } echo '
Lapa $get_page no $pages
'; $sql="select * from table_guestbook order by id desc LIMIT " . $start .", " . $num_rows . ""; $obj->query($sql); while($row=$obj->query_fetch(0)) { $id=$row['id']; $name=$row['name']; $comments=$row['comments']; $date = date("F jS, Y", strtotime($row['date'])); echo "$name
"; echo "$comments
"; echo "laiks: $date

"; } ?>
2007