How would you print refering URL in PHP?
echo $HTTP_REFERER ???
IN a table i have a field called aid.
One URL is http://www.mysite.com/articles.php?aid=a_number
One problem is that, say i type in the number 1, i get the article related to number 1 however if i type in the number, let's say...94...It displays a page, when this record does not exist.
How can i overcome this?
error checking display something if the record doesn't exist like
"Sorry Dude, that record doesn't exist."
Yes, it displays a page, but what page?
That page could and should be cutomized error page.
Just need to put a check before printing out anything, pretty simple to do.
How would i do that? Also to make sure that if a link, links to it, that it is displayed the same message?