Bonjours,

J'ai un problème avec mon post je n'arrive pas a voir mon erreur si quelqu'un arrive a m'éclaircir sur mon erreur ce serait gentille

Voila je met une date de début et une date de fin avec ces deux dates je veut avoir les donnée qui ce trouve entre ces 2 dates j'ai fait comme sa.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
 
<?php
	include("includes/application_top.php");
 
	$date_du = $_POST['Du'];
	$date_au = $_POST['Au'];
 
?>
<html>
<head>
</head>
<body>
<form action="stats_pays.php" method="post">
Periode du :<br>
<input type="text" name="Du" value="<?php echo $date_du; ?>"><br>
Periode au :<br>
<input type="text" name="Au" value="<?php echo $date_au; ?>">
<input type="submit" value="Go">
</form>
 
<b>AVANT :</b><br />
	<table border="1">
		<tr style="text-align: center; background-color:#FFAD5B; font-weight:bold;">
			<th> Pays </th>
            <th> Prestataire </th>
			<th> Voyance Gratuites </th>
			<th> Commandes </th>
            <th> C.A </th>
            <th> Mmc </th>
        </tr>
 
<?php
 
 
      $condition = "";
 
      if (isset($date_du) && !empty($date_du)) {
            $condition1 .= "   customers_date_inscription>='" . $date_du . "' ";
         }
 
      if (isset($date_au) && !empty($date_au)) {
             $condition .= " AND customers_date_inscription<='" . $date_au . "' ";
        }
 
 
 	// REQUETE 1 : 
							$query = "SELECT substr(customers_from, 1, 3) AS Origin, 
									   COUNT(*) AS effectif_vg
								FROM customers 
								WHERE
                               
                               " . $condition1 . "   and  " . $condition . " 
								GROUP BY Origin ";
								$result_vg = mysql_query($query) ;
 
 
 
while ($row = mysql_fetch_array($result_vg)) 
{  
 
 
	// REQUETE 2 : 		
			$query_produit = 
					" SELECT substr(customers_from, 1, 3) AS Origin,
					   COUNT(DISTINCT cu.customers_id) AS effectif, count(co.commandes_status) AS command,
					   AVG(co.commandes_montant) AS Mmc 
						FROM customers cu
						INNER JOIN commandes co  
						ON cu.customers_id=co.customers_id 
						WHERE co.commandes_status='1' 
						and  substr(customers_from , 1 , 3) ='".$row['Origin']."' and
						  " . $condition1 . "   and  " . $condition . " 
						GROUP BY Origin ";
 
							$result = mysql_query($query_produit) ;	
 
 
	while ($row1 = mysql_fetch_array($result)) 
	{	
 
?>
	 <tr>
			<td style="background-color:#CCCCCC;">  </td>
            <td style="text-align:center;"> <?php echo $row['Origin'] ?> </td>
			 <td style="text-align:center;"> <?php echo $row['effectif_vg'] ?> </td>
				 <td style="text-align:center;"> <?php echo $row1['command'] ?> </td>
			 <td style="text-align:center;"> <?php echo round($row1['command']*$row1['Mmc']) ?> euro </td>
             <td style="text-align:center;"> <?php echo round($row1['Mmc'] ,2) ?> </td>
 
 
<?php
} 	
	}
 
?>
</tr>
</table>
</body>
</html>
si jamais ma page ou il y a le code s'appel stats_pays.php donc je la rappel

voilé j'espère que vous pourrez m'aider merci