$query="SELECT * FROM 'login' WHERE username='".$user."' and password='".$pass_word."'";
数据表可以这样用吗'login'?

解决方案 »

  1.   

    ech mysql_error();测试一下看有什么错误出现~
      

  2.   

    error:Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='这个是不是跟我的MYSQL5.0设定有关系,还有一个就是:我用拉phpMyAdmin-2.8.1上面提示MYSQL信息中有:MySQL 字符集: UTF-8 Unicode (utf8)跟这个有没有关系
      

  3.   

    mysql字符集出现的问题,可以试一下,重新建一下表结构,指定utf8字符集. phpmyadmin最好用低版本的,2.5.7这个版本比较稳定.