Frequently Asked Questions
No ID for comments link?
-
No ID for comments link?
Posted on September 5, 2004
Written by
Sasha (view more by Sasha)
Filed under Build A Blog, FAQ, Tutorials
On my main page, the “leave a comment” link does not contain an id number. OR When I click the link to leave a comment, I get the error “Can’t select entries from table php_blog. SELECT * FROM php_blog WHERE id=”.”
Mark sure that you have added in the $id variable when you coded your comments link into the main page. Right below this line:
$entry = $row['entry'];
You should have this:
$id = $row['id'];