我有一个显示用户活动的页面,我建立了一个表单,用户可以在其中按日期过滤。
这是表格
<form action='filter_activity.php' method='get'>
From: <input type='text' name='from' value='dd/mm/yyyy'>
To: <input type='text' name='to' value='dd/mm/yyyy'>
<input type='submit' value='Filter'>
这是filter_activity.php
页面:
$from=$_GET["from"];
$to=$_GET["to"];
$result=mysql_query("SELECT * FROM member WHERE personID=$user AND created between $from and $to ");
但是,这什么也没显示,有人可以帮忙吗?