1 2 3 4 5
| $query_client = "SELECT t1.count_adw, t2.count_r, t3.count_aff, t4.count_tt FROM (SELECT COUNT(customers_id) AS count_adw FROM customers WHERE (customers_client='1' or customers_emv='1' or customers_seance ='1' or customers_emv='1' )and customers_from='adwords' ) t1,
(SELECT COUNT(customers_id) AS count_r FROM customers WHERE (customers_client='1' or customers_emv='1' or customers_seance ='1' or customers_emv='1' )and customers_from='' ) t2,
(SELECT COUNT(customers_id) AS count_aff FROM customers WHERE (customers_client='1' or customers_emv='1' or customers_seance ='1' or customers_emv='1' )and customers_from!='adwords' and customers_from!='' ) t3,
(SELECT COUNT(customers_id) AS count_tt FROM customers WHERE (customers_client='1' or customers_emv='1' or customers_seance ='1' or customers_emv='1' ) ) t4 ";
$result = mysql_query($query_client); |
Partager