输出一下 $id 和 pws , 看是否正确而且, 如果 id 是数值型的话, 最好使用$sql="select * from $sqltable where id=$id and pws='$pws'";