Hey,
I know this is a stupid way of doing it, hence the question..:
How can i do this smarter:
if (($url == 'billeder') or ($url == 'billeder=1' or $url == 'billeder=2' or $url == 'billeder=3' or $url == 'billeder=4'))
{
include("includes/billeder.php");
}
I just want to see if the number behind the ? in the $_GET is an integer, and if it is then include the file.
'billeder="value"', could increase or decrease, and therefor it is the most lame solution i have found, since, the script i not dynamic, and changes to whatever the get value is.
But i think as long as i tjeck if it is an integer at the very end, it would be fine.
Hope someone can lead the way, as my logic is not helping me at the moment!