Hello all,
I'm really new to PHP (although I do have experience in ASP) and I am working on a Picture Gallery and I used the Basic Photo Album (BPA) script to do so, now I am trying to modify the script to my liking. I have the following problems: I need to find a way to trim some info off the address,
for example,
http://drewtestsite.wytheville.com/a....jpg&bg=FFFFFF
I need to get the Vintage (which is a dir.) out of the address...
here is my code as it stands
$includedir = trim($_GET["image"]);
$incdir = $_SESSION['incfolder'];
include "./albums/$incdir/vars.php";
echo "<html>";
echo "<title>$wr_title</TITLE>";
echo "<head></head>";
--The session code is there in an attempt to grab the folder info and session it for use later.
the problem is that $includedir is actually "Vintage/RRR=06.jpg&bg=FFFFFF" instead of just "Vintage"
I need it to just be what is in the address, any help would be appreciated.
Also, is there any way that I can include captions for each picture? The only way I can think of doing that is with a database. Does anyone have any other options?
Thanks,
Drew Laing
To see the error I am recieving, goto
http://drewtestsite.wytheville.com/a...folder=Vintage
and click on a thumb.