1.判断一个字段不为空:
参考链接:
https://blog.csdn.net/qq_26320085/article/details/78655069
https://blog.csdn.net/qq_38243970/article/details/70140431
实战:
$total = pdo_fetchcolumn(' select count(*) from ' . tablename('bj_qmxk_member') . ' where zyname IS NOT NULL AND company IS NOT NULL AND position IS NOT NULL AND weid=:weid '.$wwwstr,array(':weid'=>$_W['weid']));