THINkphp 快速夸库操作

[code]

$fxnum = M()->db(1,"mysql://".$db_user.":".$db_pass."@".$db_host."/".$db_name)->query("select count(*) as count from gz_user as u inner join gz_user_share  as f ON u.user_id=f.uid  where u.wecha_id=’".$openid."’  and FROM_UNIXTIME( time, ‘%Y%m%d’ ) =".date("Ymd",time())." and type=’timeline’");

[/code]

$fxnum = M()->db(1,”mysql://”.$db_user.”:”.$db_pass.”@”.$db_host.”/”.$db_name)->query(“select count(*) as count from gz_user as u inner join gz_user_share  as f ON u.user_id=f.uid  where u.wecha_id='”.$openid.”‘  and FROM_UNIXTIME( time, ‘%Y%m%d’ ) =”.date(“Ymd”,time()).” and type=’timeline'”);