Frequently Asked Questions
Error on archives page?
-
Error on archives page?
Posted on September 5, 2004
Written by
Sasha (view more by Sasha)
Filed under Build A Blog, FAQ, PHPCalendar, Tutorials
When I view the archives page at archives.php, I get this error: “Can’t select from table in the database. SELECT timestamp, id, title FROM php_blog WHERE FROM_UNIXTIME( timestamp, ‘%Y’)= ORDER BY id DESC” OR I get this message: “Invalid year specified”.
You cannot go directly to archives.php — you must view the archives page by going to archives.php?year=xxxx (where xxxx is a year in which you have written blog entries).