您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MYSQL查询解决方法

2024/6/26 6:13:46发布28次查看
mysql查询
if   (substr($remessage,0,2)== 'tp '){
$psn=str_replace( 'tp ', ' ',$remessage);
echo   $psn;
exit;
sql= select   id   from   tempnum   where   id= ' .intval($psn). ' ;
$rs=$conn-> execute($sql);
if   ($rs-> eof)
{
smssendreturnstr($config[ 'sp '],$rs-> fields[ mobilenum ], '对不起,请没有找到您要投票的人,请核对。谢谢您的参与 ');
}
else{
$conn-> execute( update   tempnum   set   ps=ps+1   where   id= ' .$psn. ' )
}
break;
exit;
}
--------------------------------------
$remessage是用户通过手机发来的短信       ,格式为tp000001       tp后面是数字对应的id,但是不知道为什么总是查询那出错,先短信格式正确
parse   error:   syntax   error,   unexpected   '= '   in   d:\web\xxx\xxx.php   on   line   90
xiexie
------解决方案--------------------
sql= select id from tempnum where id= ' .intval($psn). ' ;
===================
$sql = .... ;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product