include("top.php"); //include("mainbio.php"); switch($mode) { case "display": //$q1 = mysql_query("select * from ships_logs2 where idx = '$pid'"); //$row = mysql_fetch_object($q1); //$detail = nl2br($row->detail); //print("$detail"); print("
Post Archive "); if ($totalrows == 0) { print("There is nothing to display "); } while($row=mysql_fetch_object($q1)) { print("post_num&mode=display>$row->title "); } print(" | ![]() | |
");
if ($totalrows > $limit ) { print(" "); if($page != 1){ $pageprev = $page - 1; print("<< "); }else print(" "); $numofpages = $totalrows / $limit; for($i = 1; $i <= $numofpages; $i++){ if($i == $page){ print($i." "); }else{ print("$i "); } } if(($totalrows % $limit) != 0){ if($i == $page){ print($i." "); }else{ print("$i "); } } // Ends the if statement if(($totalrows - ($limit * $page)) > 0){ $pagenext = $page+ 1; print(">>"); }else{ print(""); print(""); } } } print(" |