- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
$t2 = db_query("SELECT
COUNT(*)
FROM
order_delivery_offers AS odf,
uc_orders AS uo
WHERE
odf.order_id = uo.order_id AND
uo.uid = $uid AND
uo.order_status = 'accepted' AND
odf.status = 'accepted' AND
odf.visible = 1 AND
odf.active = 1
GROUP BY odf.order_id");
$count_rows2 = 0;
while ($r2 = db_fetch_array($t2)){
$count_rows2++;
}