car pour l instant mon $tot à une valeur diffrenet pour chaque ligne de mon tableau de reponse ....
[b]SELECT COUNT( * ) AS tot[/b], orders_total.orders_id, customers_id, customers_name, value, date_purchased, orders_status_name
FROM orders, orders_total, orders_status_history, orders_status
WHERE orders.orders_id = orders_total.orders_id
AND orders_total.orders_id = orders_status_history.orders_id
AND orders_total.orders_id = orders_status_history.orders_id
AND orders_status_history.orders_status_id = orders_status.orders_status_id
AND orders_total.class = 'ot_total'
GROUP BY orders_total.orders_id
ORDER BY orders_total.orders_id DESC
LIMIT 0 , 30