I am planning to make a description of Photo album depending on which album is currently showing. As I can see in address bar, it gives "album" variable, for example
.....&album=newphotos#1
I have tried to check which album is active using this:
<?php if($album=="newphotos"): ?>
however that is not working and "if" doesn't pass. If I change it to
<?php if($album!="newphotos"): ?>
then "if" always passes, no matter which album is active in address bar.
How should I check a current album in PHP? Thanks.