diff --git a/barometre.php b/barometre.php index 6bb16d5..4d2186f 100644 --- a/barometre.php +++ b/barometre.php @@ -17,7 +17,6 @@ if ($last_check ===null || date_add(new DateTime($last_check), DateInterval::cre if ($ville == array()) { $base->query("INSERT INTO Villes VALUES (".$value['properties']['insee'].", \"".$value['properties']['name']."\");"); } - echo("INSERT INTO chiffres VALUES(\"".$decoded['date']."\", ".$value['properties']['insee'].", ".$value['properties']['contributions'].");"); $base->query("INSERT INTO chiffres VALUES(\"".$decoded['date']."\", ".$value['properties']['insee'].", ".$value['properties']['contributions'].");"); } } @@ -43,5 +42,6 @@ while( $line = $compte->fetchArray()) { ?> -
+
Le code correspondant au script +