用PHP做登陆系统的问题二,是不是我的SQL语句写错了??? $sql="select user_name,user_password from tab_user where user_name='{$_POST[td_username]}' and user_password='{$_POST[td_password]}'"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $sql="select user_name,user_password from tab_user where user_name='$_POST[td_username]' and user_password='$_POST[td_password]'"; 一楼正解而且提请注意的是$puser_name=$r["user_name"];$ppassword=$r["user_password"];里面通过页面传递的name和password也应该是$_POST[]的形式 不好意思应该是$sql="select user_name,user_password from tab_user where user_name='$_POST[td_username]' and user_password='$_POST[td_password]'"; $sql="select user_name,user_password from tab_user where user_name='" . $_POST[td_username] . "' and user_password='" . $_POST[td_password] . "'"; 解决了旧问题,又有新问题了.......http://community.csdn.net/Expert/topic/4057/4057316.xml?temp=.1268122 这个怎么插不进去? php读取json的小问题 php 用smtp的类发邮件,被一些邮箱当作垃圾邮件的问题。 为什么通过构造函数传进来的参数,执行函数后前后不一致? 关于PHP的Session过期的问题 cookie的问题? 如何用PHP实现超级链接? 敢问高手们谈谈学习PHP的方法 ?? 怎么说 php 大的东西 搞不料?? PHP中COM编程,例如Word等 如何取得文件的后辍??? select a.facctcode from a2005001laccount a ,a2005001fcwvch b where a.facctcode=*b.fkmh *在这里有什么作用?
而且提请注意的是
$puser_name=$r["user_name"];
$ppassword=$r["user_password"];
里面通过页面传递的name和password也应该是$_POST[]的形式
应该是
$sql="select user_name,user_password from tab_user where user_name='$_POST[td_username]' and user_password='$_POST[td_password]'";
http://community.csdn.net/Expert/topic/4057/4057316.xml?temp=.1268122