<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<p>
<?php
$connect=mysql_connect("localhost","root","php");
mysql_select_db("message",$connect);
$yemian = $_GET['ym'];
if($yemian<=0)
{$yemian=1;}
$i=$yemian*2-1;
$a = $i-1;
$b = $i+1;
$sql = "SELECT * FROM `test1` where boolean =1 ORDER BY `intid` ASC limit $a,2";
echo $sql;
$query=mysql_query($sql,$connect);
echo "连接成功";
while($row=mysql_fetch_row($query))
{print( "<br />".$i++." ".$row[0].$row[1].$row[2]);?>
<a href="4.php?id=<? echo $row[0];?>">删除</a>
<br />
<?php
}?>
<a href="3.php?ym=<? echo $yemian+1;?>">下一页</a>
<a href="3.php?ym=<? echo $yemian-1;?>">上一页</a></p>
<form id="form1" name="form1" method="post" action="3.php">
<input name="textf" type="text" value="1" size="5" />
<?php
$x=$_POST['textf'];这行跟下面的一行有错,有人能给解答吗?
echo $x;
?>
<a href="3.php?ym=<? echo $yemian=$_POST['textf'];?>">跳转</a>
</form>
<p> <a href="1.html">我要留言</a></p></body>
</html>
还有就是要怎么设置尾页问题???
在这边先谢咯
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<p>
<?php
$connect=mysql_connect("localhost","root","php");
mysql_select_db("message",$connect);
$yemian = $_GET['ym'];
if($yemian<=0)
{$yemian=1;}
$i=$yemian*2-1;
$a = $i-1;
$b = $i+1;
$sql = "SELECT * FROM `test1` where boolean =1 ORDER BY `intid` ASC limit $a,2";
echo $sql;
$query=mysql_query($sql,$connect);
echo "连接成功";
while($row=mysql_fetch_row($query))
{print( "<br />".$i++." ".$row[0].$row[1].$row[2]);?>
<a href="4.php?id=<? echo $row[0];?>">删除</a>
<br />
<?php
}?>
<a href="3.php?ym=<? echo $yemian+1;?>">下一页</a>
<a href="3.php?ym=<? echo $yemian-1;?>">上一页</a></p>
<form id="form1" name="form1" method="post" action="3.php">
<input name="textf" type="text" value="1" size="5" />
<?php
$x=$_POST['textf'];这行跟下面的一行有错,有人能给解答吗?
echo $x;
?>
<a href="3.php?ym=<? echo $yemian=$_POST['textf'];?>">跳转</a>
</form>
<p> <a href="1.html">我要留言</a></p></body>
</html>
还有就是要怎么设置尾页问题???
在这边先谢咯
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货