bonjour,

j'ai un petit problème qui est que je comprend pas trè bien comment mettre une variable sur chaque select que je fai dans ce code??

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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);
car j'aimerai les réutilisé pour plus tard par exemple le t4 ou t3 quelqu'un pourrait me guidé svp