, SUM(quantity) as quantity FROM `order_product` GROUP BY product_id订单模型{
return $this->belongsToMany('App\Product')->withPivotreturn $this->belongsToMany('App\Or
到目前为止我做了这个:奎瑞斯:$res=mysql_query("SELECT * FROM users WHERE id=".$_SESSION['user']);$res2=mysql_query("SELECT * FROM posts WHERE pid="$_SESSION['user']);
$row2=mysql_fetch_a