问个简单的问题,带参数的sql语句怎么写?在线等待! 谢谢 $sql="select * from user where userid='$user'and pwd='$passwd'"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 或者$sql="select * from user where userid='".$user."' and pwd='".$passwd."'";关键是 SQL 语句中的 $user 和 $passwd 字符串应该用引号括起来 $sql="select * from user where userid='$user'and pwd='$passwd'";$sql="select * from user where userid='".$user."' and pwd='".$passwd."'";字符型的字段要用引号 $sql='select * from user where userid="$user" and pwd="$passwd"';可以么?? $sql=sprintf("select * from user where userid=%s and pwd=%s",$user,$password); 如何用PHP正则获取论坛楼主发表的帖子与回复 flash sendandload 获取 php 返回 PHP怎样开启报错功能? 关于webservice的理解 请指教 我以一个初学者的身份写了这篇关于PHP4里的OO的学习心得,大家评评 如何用put的方法实现文件上传(急) mysql数据库问题,请帮忙! 如何让留言本不支持html? 关于显示内容的问题 请问php如何实现简体繁体的即时互换? zend的中文支持问题 Warning: Cannot add header information ..............
$sql="select * from user where userid='".$user."' and pwd='".$passwd."'";
关键是 SQL 语句中的 $user 和 $passwd 字符串应该用引号括起来
$sql="select * from user where userid='".$user."' and pwd='".$passwd."'";
字符型的字段要用引号
可以么??