include "left.php"; ?>
if (!isset($show)) {$show=0;}
$result1 = mysql_query("select Count(*) as total from $tablemark where companyid='$companyid'") or die(mysql_error());
$row=mysql_fetch_Array($result1);
$total=$row[total];
$query = "select * from $tablemark where companyid='$companyid' order by id desc limit $show, $limit";
$result=mysql_query($query);
$number = mysql_num_rows($result);
$i = 0;
if ($total == 0){
print " "; print " "; }elseif ($total > 0) { if ($total%$limit!=0) { $totalpage=intval($total/$limit)+1; } else { $totalpage=intval($total/$limit); } $nowpage=intval($show/$limit)+1; print " 共 $total 個評價"; print "/共$totalpage.頁"; } ?> |
while ($i < $number){ $row = mysql_fetch_array($result); $id=$row["id"]; $name=$row["name"]; $mark=$row["mark"]; $message=$row["message"]; $date=$row["date"]; ?>
名稱 | echo $name;?> |
評價 | echo $mark;?> |
評價內容 | echo nl2br($message);?> |