问个简单的问题,带参数的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); 想用PATH_INFO功能。但是不知道应该加到哪里? 大牛们进来解惑 文件编码问题 急 :FCK 上传图片提示 invalid file type GD库合并gif 图像之后 没有动态效果了 菜鸟问题:为什么显示不出内容? 求大神帮我分析以下代码,我大概能读懂 80% 怎样设置才能让php脚本不是以php为扩展名,但还能正常访问 怎么设置才能让PHP可以使用COM,我现在就是调用了呀? php处理json数据的问题 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."'";
字符型的字段要用引号
可以么??