<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;"charset="gb2312">
<title>景点展示</title>
</head>
<body>
<?php
include("../config.inc.php");
$page = $_GET['p'];
mysql_query("SET NAMES GBK");
$sql= "select * from scenic LIMIT ".($page-1)*6 .",6";
$result = mysql_query($sql);
?>
<table width=15% border="1"cellspacing=0 align="center" >
<tr>
<th width="690" colspan="2" align="center" valign="middle" scope="col">
<p>
<style type="text/css" >
tr{
height: 40px; //行高
}
td{
text-align: center; //td内对象水平居中
}
</style>
<?php while($row=mysql_fetch_assoc($result)){
echo "<tr><td>简介:{$row['scenic_name']},{$row['scenic_intro']}";?><br/>
<img src="<?php echo $row['scenic_pic'];?>"width="350" height="300" title="<?php echo $row['scenic_name'];?>">
<br> <a href="xx.html" target="_blank" >查看详情</a></br>
</p>
<p> </p>
</td></tr>
<?php }?>
<td height="40"></td></tr>
</table>
</body>
<html>
<head>
<meta http-equiv="content-type" content="text/html;"charset="gb2312">
<title>景点展示</title>
</head>
<body>
<?php
include("../config.inc.php");
$page = $_GET['p'];
mysql_query("SET NAMES GBK");
$sql= "select * from scenic LIMIT ".($page-1)*6 .",6";
$result = mysql_query($sql);
?>
<table width=15% border="1"cellspacing=0 align="center" >
<tr>
<th width="690" colspan="2" align="center" valign="middle" scope="col">
<p>
<style type="text/css" >
tr{
height: 40px; //行高
}
td{
text-align: center; //td内对象水平居中
}
</style>
<?php while($row=mysql_fetch_assoc($result)){
echo "<tr><td>简介:{$row['scenic_name']},{$row['scenic_intro']}";?><br/>
<img src="<?php echo $row['scenic_pic'];?>"width="350" height="300" title="<?php echo $row['scenic_name'];?>">
<br> <a href="xx.html" target="_blank" >查看详情</a></br>
</p>
<p> </p>
</td></tr>
<?php }?>
<td height="40"></td></tr>
</table>
</body>