please look the following code:
<?php
if ($_GET['picture'] == 1) {
echo "<img src=\"1.jpg\" />";
} else if ($_GET['picture'] == 2) {
echo "<img src=\"2.jpg\" />";
} else if ($_GET['picture'] == 3) {
echo "<img src=\"3.jpg\" />";
}
?>
Now, when I click a link like index.php?picture=1, the picture 1.jpg will appear. But, when I have a thousand of these, I don't want to create every If statement myself: so how to I loop through this? How can I create a loop so these are automatically created?