Okay I'm working on a blog system and *Finally* (big yey)
got the stupid comments to work; well okay it was tons
different (and easy) than I thought it'd be, etc etc.
Now ~ I'm using num_row I think it is, to count how many rows
based on where the field 'news_id' equals the variable $id (set in a query above that).
This is on the index page; what I want to know is, on the comments page
how do I make it so that if there are no results in the news_id field
that equal the same as $id (which is passed via URL, like comments.php?id=xx)
that it'll say "Go away blah blah no comments here"?
I tried to use like if (empty($nid)) { echo "blah blah"; } else { *shows results* }
but that didn't work; any ideas?
got the stupid comments to work; well okay it was tons
different (and easy) than I thought it'd be, etc etc.
Now ~ I'm using num_row I think it is, to count how many rows
based on where the field 'news_id' equals the variable $id (set in a query above that).
This is on the index page; what I want to know is, on the comments page
how do I make it so that if there are no results in the news_id field
that equal the same as $id (which is passed via URL, like comments.php?id=xx)
that it'll say "Go away blah blah no comments here"?
I tried to use like if (empty($nid)) { echo "blah blah"; } else { *shows results* }
but that didn't work; any ideas?
Comment