ob_start() ; session_start(); ?>
�ͺ�����Թԡ�Ԩ�� if(!isset($_SESSION["user_authen"])){ ?> �������к� | ��Ѥ���Ҫԡ }else{ include "connect.php"; //echo"= $_SESSION[login]"; $sql="select * from group_admin where a_user='$_SESSION[user_authen]' and status='2'"; $result99=mysql_db_query($dbname,$sql); $r99=mysql_fetch_array($result99); $a_name=$r99[a_name]; $a_user=$r99[a_user]; $a_pass=$r99[a_pass]; $a_picture =$r99[a_picture]; ?> echo"ÂÔ¹´Õµé͹ÃѺ¤Ø³ $a_name";?> | ��纺��� | ��駡�з������ | ���ҡ�з�� | �͡�ҡ�к� }?>
$no5=0;
include "connect.php";
include "function.php";
$sql="select * from webboard_content order by content_id desc ";
$result5=mysql_db_query($dbname,$sql);
$num5=mysql_num_rows($result5);
// $sql="select * from group_trade order by trade_access desc ";
//$result5=mysql_db_query($dbname,$sql);
// $num5=mysql_num_rows($result5);
$Num_Rows = mysql_num_rows($result5);
$Per_Page = 20; // Per Page
$Page = $_GET["Page"];
if(!$_GET["Page"])
{
$Page=1;
}
$Prev_Page = $Page-1;
$Next_Page = $Page+1;
$Page_Start = (($Per_Page*$Page)-$Per_Page);
if($Num_Rows<=$Per_Page)
{
$Num_Pages =1;
}
else if(($Num_Rows % $Per_Page)==0)
{
$Num_Pages =($Num_Rows/$Per_Page) ;
}
else
{
$Num_Pages =($Num_Rows/$Per_Page)+1;
$Num_Pages = (int)$Num_Pages;
}
$sql .="LIMIT $Page_Start , $Per_Page";
$result5=mysql_db_query($dbname,$sql);
?>
�鹾� ��з�� //=$Num_Pages;?> if($Num_Rows<>0){?> Page : if($Prev_Page) { echo " << Back "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ $i ]"; } else { echo " $i "; } } if($Page!=$Num_Pages) { echo " Next>> "; } }//if Num_Rows ?> |
||||||