if($_GET['action']=='login'){
include ROOT_PATH.'/include/login.func.php';
check_code($_POST['yzm'],$_SESSION['code']);
$clean=array();
$clean['username']=check_un($_POST['user'],2,10);
$clean['password']=check_ps($_POST['psd'],2,10);
$clean['time']=check_time($_POST['time']);
$re=mysql_query("select * from member where username={$clean['username']} and password={$clean['password']} limit 1");
if(!!$fet=mysql_fetch_array($re)){
alert_go('登录成功','index.php');
session_destroy();
mysql_close();
}else{
mysql_close();
session_destroy();
alert_go('用户名、密码错误或未激活','login.php');
}
echo了sql语句可以找到数据,但就是提示上面的,echo $fet里面的字段也是得不到值,如 $fet['username']也是没有值。。。不知道什么原因。。。怎么解决,求指教
老师教我们要做乐于助人的好孩子。。。