Frequently Asked Questions

No ID for comments link?

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'];