Hi there,
I'd like to do the following so that if no ID or an incorrect one is specified, then alternative pages are shown.
If database entry = present, include file.php, if database entry = non existent, include otherfile.php but if no id requested, include thisfile.php.
The database entry would need to be found via a variable defined by the URL. I have this code- thanks to members here.  If the ID requested from the URL is not present in the database, I'd like it to include another file and if no ID is requested, then request another page. If an ID is found, then it includes another.
How might I do this?
Thanks
Sam
|