$pwd = sha1('$pwd');select bankcard,password,name from readers where bankcard='$name' and password='$pwd '
> select bankcard,password,name from readers where bankcard='$name' and password=sha1('$pwd')改为: $sql = "select bankcard,password,name from readers where bankcard='".$name."' and password='".sha1($pwd)."'";
and password='$pwd '
and password=sha1('$pwd')改为:
$sql = "select bankcard,password,name from readers where bankcard='".$name."' and password='".sha1($pwd)."'";