Hello everyone,
I'm a new PHP coder, trying to code a photo gallery on my own for my website, and I've come across something I think can be done easier.
Right now, I have a file called popup.php, of which the pictures are linked to for the pop-up window (popup.php?p=PICTUREIDHERE). Is there any way that I can take that and put it so it will do the following later in the same file?
?>
<img src="http://domain.com/gallery/subcategory/PICTUREIDHERE.jpg">
<?php
In other words, I want to put in the "p=PICTUREIDHERE" in to "PICTUREIDHERE.jpg" so I can call up the picture with fewer lines of code.
Is there any easy way to do this, or am I just dreaming of a world where pigs fly?
Thanks all!