How to deal with more than three PHP GET Variables to Select data from MySQL database
<p>I have a PHP page called <code>get.php</code> that has access to MySQL Database.
I use one table called: <code>MyTable</code></p>

<p>In the table I have more than on row.
Every info has an <code>id</code> that I use to get the other info based on it:</p>

<pre><code>$sql = "SELECT * FROM `MyTable` WHERE `id`='" . $_GET["var1"]'";
$result = $conn-&gt;query($sql);
.
.
.
</code></pre>

<p>So when I go to:</p>

<pre><code>localhost/bb/t2/get.php?var1=1
</code></pre>

<p>I get the other info like Name of the info by fetching the rows.</p>

<p><strong>BUT</strong> I want to deal with more than one variable:</p>

<pre><code>localhost/bb/t2/get.php?var1=1&amp;var2=2&amp;var4=4&amp;...
</code></pre>

<p>So I can get the info of every <code>id</code> and not one only.</p>

<p>I want to handle any number of variables and get it's data.</p>

<p>Thank you!</p>