哈哈,第一次给你回复 :-)使用排除法:1.排除Like子句是否有错?$query="select * from logfile where log_user like '%$m_user%' and log_shop='$m_shop' and log_type='$m_type' and log_dept='$m_dept' and log_time<'$m_datetimeto' and log_time>'$m_datetime'"; $result=mysql_query($query); 方法:将$m_user替换为你数据库中有的字符,执行看看结果?!if right then exit else goto 2;2.注意字符的大小写敏感!
and log_shop='$m_shop' and log_type='$m_type' and log_dept='$m_dept' and log_time<'$m_datetimeto' and log_time>'$m_datetime'";
$result=mysql_query($query);
方法:将$m_user替换为你数据库中有的字符,执行看看结果?!if right then
exit
else
goto 2;2.注意字符的大小写敏感!