unexpected T_STRING 错误

nbzz505 2009-09-04 10:53:49
初学php,出现unexpected T_STRING ,可能是语法错误,请大家帮忙看看

if ($strWhere!="0"){
$strSQL="select * from contract where " ." $strWhere;
}else{
$strSQL="select * from contract where isDel==\"0\""; 提示该行出错
}

$strResult= "<tr height=30 bgcolor=#85C144><th class=border1 align=center>项目序号</th></tr>" 该行也是同样的错误提示
...全文
154 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuzuning 2009-09-04
  • 打赏
  • 举报
回复

if ($strWhere!="0"){
$strSQL="select * from contract where " ." $strWhere; <== 多了个引号
}else{
$strSQL="select * from contract where isDel==\"0\""; 提示该行出错
}

nbzz505 2009-09-04
  • 打赏
  • 举报
回复
已经改了,但还是同样的错误
dzxccsu 2009-09-04
  • 打赏
  • 举报
回复
$strSQL="select * from contract where isDel=\'0\'";

21,882

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧