a.php <?php $start="2006-11-13"; <a href=b.php?start=<? echo $start; ?> >b.php</a> ?>b.php <? $start=$_GET['start']; $sql = "select * from 表 where start > '$start' order by ID DESC LIMIT 0,10"; ?>
Bevin_chen同学的方法不对,我B页面上有N多程序,都是用来做传递参数的,您的这一句话$sql = "select * from 表 where start > '$start' order by ID DESC LIMIT 0,10"; 固定了start变量,我的程序B上的全都是灵活的, 感谢支持,我马上试验一下bingofei同学的方法.
<?php
$start="2006-11-13";
<a href=b.php?start=<? echo $start; ?> >b.php</a>
?>b.php
<?
$start=$_GET['start'];
$sql = "select * from 表 where start > '$start' order by ID DESC LIMIT 0,10";
?>
感谢支持,我马上试验一下bingofei同学的方法.
数据表中start是什么类型?
如果是unix时间戳,就可以用 where start> strtotime("2006-12-13);
如果不是unix时间戳,有两种建议~1,改成unix时间戳; 2, where UNIX_TIMESTAMP('start')> strtotime("2006-12-13);
if(get_magic_quotes_gpc){
$start=stripslashes($_GET['start']);
}