我是新人,求教复杂查询 select * from where or 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果全部为空则不执行。if (edit1.text != "" or edit2.text != "" or.........edit15.text != ""){ select * from yourtable where condition1 = edit1.text or condition2 = edit2.text or ......condition15 = edit15.text} elsereturn;我的是C里面的语法。。你改成PHP专用的。。估计就差不多了~~ 1-------if (edit1.text != "" ){ cond1 = "cond1 = '".cond1."'";}else{ cond1 = "1";}if (edit2.text != "" ){ cond2 = "cond2 = '".cond2."'";}else{ cond2 = "1";}.....strsql = "select .... where ".cond1." or ".cond2."....... strsql = "select .... where ".cond1." and ".cond2."....... RMB求小程序调试 急高分求救,请问大家酒店里gateway里显示使用时间,你们是怎么实现的? apache环境中,网络驱动器不可用 使用utf-8编码的问题~~~ 对我来说非常难的题!!!帮忙下 如果一个用户已经登陆,就不能在用这个用户进行登陆...请问这个方法要怎么写才合适 SOS,急啊,大家帮帮忙看看怎么解决!高手们 请问,我这个设置对不对?我实在找不出错在哪儿,帮帮忙吧,谢谢! 请教一下PHP高手帮我看一下 PHP读取SQL2000数据库 时间问题 已建数据库,如何导入建表文件? 我是新手,求教复杂查询问题
if (edit1.text != "" or edit2.text != "" or.........edit15.text != "")
{
select * from yourtable where condition1 = edit1.text or condition2 = edit2.text or ......condition15 = edit15.text
}
return;我的是C里面的语法。。你改成PHP专用的。。估计就差不多了~~
cond1 = "cond1 = '".cond1."'";
}else{
cond1 = "1";
}
if (edit2.text != "" ){
cond2 = "cond2 = '".cond2."'";
}else{
cond2 = "1";
}.....
strsql = "select .... where ".cond1." or ".cond2.".......