Frequently Asked Questions: tutorial questions
Below are all the frequently asked questions added to the site. Please read through them before asking a question in the forums!
Latest
-
1
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'];
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, Tutorials
-
2
When I view my single entry page at entry.php, I get this error: Can’t select entries from table php_blog. SELECT * FROM php_blog WHERE id=” OR I get this message: “Invalid ID specified”.
You cannot go directly to entry.php — you must view the page as entry.php?id=xxx (where xxx is the id number of one of your entries).
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, Tutorials
-
3
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).
September 5, 2004 |
By Sasha |
Filed under Build A Blog, FAQ, PHPCalendar, Tutorials
-
4
I’m using the Total Individual Member Count tutorial, but I’d rather display the fanlisting’s name than the table name. How can I do that?
There are instructions on how to do that at the forum here and here.