Hi,
I have a problem, first I will show you the code, then I will explain, what the code should do, finally I tell what it does  .
Code:
<?php
for ($loop = 1; $loop <=2; $loop+=1)
{
$hammer = '.jpg';
echo $loop;
echo "<br>";
$sigma = $loop.$hammer;
echo "<a href src='$sigma' target='new'><img src='$sigma' width='200'></a>";
echo "<br><br>";
}
?>
It should do:
I want to create a column of thumbs, where each of those opens the according picture. So the pro would be, that for a lot of pictures we do not have to write every time "<a href...></a>", instead we just write "loop<=1000".
It does:
This code opens every time you click on a thumb the whole php-data again (blabla.php) in a new window, not only the picture itself.
So... can you please tell me where the mistake is???
THANKS A LOT!
Gregor
|