|
Sorry about the mysterious title, I wasn't sure how to word it.
To be brief, my problem is that I have a page for viewing a specific article (from the news) which also acts as a permalink and comments page. My question is: How do I make it so that when a null ID (one that doesn't exist) is entered in the URL, it also says it onscreen?
Currently, it just displays everything normally without any content (no MySQL information), and if there is no ID in the URL whatsoever, it just exits the page and displays the appropriate error (which is what I want).
Basically, I'm asking how I should word my If statement (if that's what I need to use...) to check if the ID in the news table provided actually exists, and if not... well, I can cover the "if nots", I just need the check statement.
(Heh, I guess that wasn't so brief.)
|