I have a PHP file that fetches all the data from my local database and when I type the full path on the link localhost/webdev/drinksupphp/retrieve-data.php/
I get this result in the browser :
[
   {
      "ID":1,
      "NOM":"John",
      "PRENOM":"Doe",
      "EMAIL":"johndoe@gmail.com",
      "PASSWORD":"123456"
   },
   {
      "ID":2,
      "NOM":"Jean",
      "PRENOM":"D'Arc",
      "EMAIL":"jean@gmail.com",
      "PASSWORD":"123456"
   },
   {
      "ID":3,
      "NOM":"Teko",
      "PRENOM":"Lou",
      "EMAIL":"lou@gmail.com",
      "PASSWORD":"123456"
   }
]
and my question is, how can I get filter this data (for example by ID=1) through the URL only? Something like : localhost/webdev/drinksupphp/retrieve-data.php?ID=1
Thank you in advance
 
     
    