Okay, I'm working on a news script and am having trouble retrieving the comments. The comment table features a column "post" which contains the id of the post it is associated with, as well as unique "id" column for each comment. I have two comments in place right now for testing, both with the same "post" value. Here's my current query:
$commentquery = mysql_query ('SELECT * FROM ' . $tableprefix . 'chronicle_comments WHERE post="' . $postid . '" ORDER BY id"')
or die ('Could not select comment info.');
It gives me the die message, and I think it's due to the fact that WHERE is supposed to specify only a single row in MySQL. I'm wondering how to select multiple rows based on the content of a field...