1 query: select * from table_info where class1 ='简介and class2='简介' and isVisible=1 order by id asc limit 1
是这么提交的,php里面的代码
<?php
$infos=$infoMgr->getInfos("简介",$showNum=1,"简介");
$info=$infos[0];
?>
大概是哪方面的问题,是不是要改配置文件
...全文
704打赏收藏
为什么查询语句代码直接显示出来了
1 query: select * from table_info where class1 ='简介and class2='简介' and isVisible=1 order by id asc limit 1 是这么提交的,php里面的代码 getInfos("简介",$showNum=1,"简介"); $info=$infos[0]; ?> 大概是哪方面的问题,是不是要改配置文件
select * from table_info where class1 ='简介and class2='简介' and isVisible=1 order by id asc limit 1
是因为你的SQL语句错误了,你看那个简介少了个'号。加上去估计就不会出错了。
还有MYSQL查询值最好加''