From 3e9da1451e03c484aa2359043e10b30e5401cf9b Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Tue, 27 Mar 2018 08:51:11 +0200 Subject: [PATCH] filter working --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 7ca5fa8..4af624b 100644 --- a/index.php +++ b/index.php @@ -54,7 +54,8 @@ if(isset($_GET['filter'])){ $station){ + foreach ($data as $key => $station){ + if ( ! $filter || isset($_GET[$key])){ echo ' @@ -65,6 +66,7 @@ if(isset($_GET['filter'])){ '; } + } ?>
SĂ©lectionnerNomVĂ©losPlaces Libres
', $station['ABS'], '