I have a URl that looks like this:
http://somedomain.com/article_view.php?articles=ViewAll
I am then trying to extract when articles=ViewAll using:
if(isset($_GET['articles']) && $_GET['articles']=='ViewAll'){
//do something here
}
It doesn't seem to be working as it never drops inside the if statement. I assume my syntax is wrong but as a newbie I can't see my error. Your help much appreciated.
this works for me try it:
if(isset($_GET['articles']) && ($_GET['articles']=="ViewAll"))
{
}
try checking the rest of your code or paste the rest of the code here so I can see what may be wrong