$coupons = pdo_fetchall("select * from ".tablename('wangniu_activity')." where flag = 0 and isopen = 1 and ischeck = 1 and start_time < ".time()." and end_time > ".time()." and weid = ".$weid." and storeid = '".$id."'. order by type asc");
其中sql执行为:
select * from `ims_wangniu_activity` where flag = 0 and isopen = 1 and ischeck = 1 and start_time 1458445852 and weid = 2 and storeid = 'B0FFF4YWV2' . order by type asc
多了一个点,这个点怎么去掉?
回复讨论(解决方案)
... " and storeid = '".$id."' order by type asc"
Déclaration:Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn