with the following suffix of code:
mykids_pics.php?timeframe=2001Q2
everything is fine...
and I trapped the "users" (my family) if they manually go to the address bar and change the 2001Q2 to say...2005. I throw them to another page (as illustrated below)...no biggie.
BUT>>>
If they were to rip the extension off, leaving:
mykids_pics.php
I get errors galore.
How can I put a check in the code for that? Here's a snippit of what i have running right now:
$query="SELECT * FROM pics_counts WHERE file_prefix = '$timeframe'";
$result=mysql_query($query);
$num=mysql_numrows($result);
IF ($num < 1)
{
Header("Location: doesnotexist.php");
}[/I]
Any assistance is greatly appreciated.
-Shawn Thompson