http://localhost/page/?article1
<?php if(!empty($_GET)) { echo $_GET; } else { echo 'no dice'; }?>
http://localhost/page/?article=1
<?php if(!empty($_GET)) { echo $_GET['article']; } else { echo 'no dice'; }?>
print_r ($_GET);
And I've got this page to test it:
And when I add the "?article1" to the URL it just echoes "Array", but when I don't it just says "no dice".
Any suggestions?
and to display what article is equal to, you need...
since it's an Array, you can try