I have a PHP page called get.php
that has access to MySQL Database.
I use one table called: MyTable
In the table I have more than on row.
Every info has an id
that I use to get the other info based on it:
$sql = "SELECT * FROM `MyTable` WHERE `id`='" . $_GET["var1"]'";
$result = $conn->query($sql);
.
.
.
So when I go to:
localhost/bb/t2/get.php?var1=1
I get the other info like Name of the info by fetching the rows.
BUT I want to deal with more than one variable:
localhost/bb/t2/get.php?var1=1&var2=2&var4=4&...
So I can get the info of every id
and not one only.
I want to handle any number of variables and get it's data.
Thank you!