阅读背景:

从一个表中选择,从另一个id链接的表中计数

来源:互联网 

heres my code:

这是我的代码:

$sql = mysql_query("select c.name, c.address, c.postcode, c.dob, c.mobile, c.email, 
                    count(select * from bookings where b.id_customer = c.id) as purchased, count(select * from bookings where b.the_date > $now) as remaining, 
                    from customers as c, bookings as b 
                    where b.id_customer = c.id
                    order by c.name asc");
$sql = mysql_query("



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: