hi
i was trying to use PHP to display images from 1 to 5. But it didn't work.
$root is my root directory
$image is assigned the value of 1
here is my codes:
print "<img src=$root/$image.jpg>";
print "<img src=$root/$image++.jpg>";
the first line shows me the correct image. The second line doesn't. The source of HTML displays <img src=myurl.com/1++.jpg> (i want it to be <img src=myurl.com/2.jpg>). I know I can do it manually by adding $image=image+1; between these codes. Are there any other ways to do that? If yes, please tell me how.
Thank You!