dingzhongan 发表于 2016-11-27 13:32:51

{php echo $db

{php echo $db ->count($table, "buyer='$_username' AND status=1");}

dingzhongan 发表于 2016-11-27 13:33:53

/mobile/my.php
写在这个文件会出错,
写一个可以。如果写二个就会出错。。什么原因???
{php $table="jiuanweb_mall_order";}
            全部订单 {php echo $db->count($table, "buyer='$_username' AND status=1");}   待付款 {php echo $db->count($table, "buyer='$_username' AND status=2");}待发货 在线充值

龙在天涯 发表于 2016-11-28 09:06:21

$table将这个可以换成实际的表名

joy 发表于 2016-11-29 08:29:45

你想要调用什么呢

dingzhongan 发表于 2016-11-29 11:30:35


joy 发表于 2016-11-29 08:29

你想要调用什么呢
待付款 和 待发货,的数量显示。

dingzhongan 发表于 2016-11-29 08:29:00

/mobile/my.php
这个页面同时显示会出错

joy 发表于 2016-11-29 11:31:12


dingzhongan 发表于 2016-11-29 11:30

待付款 和 待发货,的数量显示。
你调用订单表

joy 发表于 2017-1-9 08:33:22


dingzhongan 发表于 2016-11-29 11:30

待付款 和 待发货,的数量显示。
{php echo $db->count($DT_PRE.'sell_5', 'status=3', 1800);}用类似这种的

dingzhongan 发表于 2016-11-29 11:30:00


joy 发表于 2017-1-10 08:35

{php echo $db->count($DT_PRE.'sell_5', 'status=3', 1800);}用类似这种的
谢谢,这句话是什么意思?
1800是什么意思 ?
页: [1]
查看完整版本: {php echo $db