/var/www/hkosl.com/chineseaaedu/tc/_init.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?
include('../webadmin/configure.php');

//ini_set('display_errors',0);

$lang 'tc';

function 
parsePages$page 1$item_total 0$item_per_page ) {
    
$page_total ceil($item_total/$item_per_page);
    
$page = !$page||$page>$page_total $page
    
$loopMin $item_per_page*($page-1);
    
$loopMix $item_per_page+$loopMin;
    return array(
$page$page_total$loopMin$loopMix);
}

$sql "SELECT * FROM site_info WHERE siteinfoid = '1' ";
$sth1 $dbh->prepare($sql);
$sth1->execute();
$row_site_info $sth1->fetch(PDO::FETCH_ASSOC);
?>