var_dump(用户名)能打出来,var_dump(密码)不能打出来
<?php
session_start();
include("Conn/conn.php");
$username=$_POST['username'];
$password=$_POST['loginpwd'];
$useryzm=$_POST['loginyzm'];
$useryzm1=$_SESSION['autonum'];
if($useryzm==$useryzm1){
$sql = mysql_query("select * from zyhh_user where pwd='{$password}'");
$row= mysql_fetch_row($sql);
var_dump($row);die();
if($row){
echo"<script>alert('登录成功!');window.location.href='index.php';</script>";
}
else {
echo"<script>alert('登录失败!');window.location='login.php';</script>";
}
}