I had a question about the archiving. My blog is set up so the index.php will show only five entries. But when I click on the link to view my different entries it only shows me the ones the index page.
My code for my archive page:
QUOTE
<?php
mysql_connect("localhost", "crazy-cutie_com", "*******");
mysql_select_db("crazy-cutie_com_1");
$result = mysql_query("SELECT timestamp, id, title FROM php_blog WHERE FROM_UNIXTIME(
timestamp, '%Y' ) = $year ORDER BY id DESC");
while ($row = mysql_fetch_array($result))
{
$date = date("l F d Y",$row["timestamp"]);
$id = $row["id"];
$title = $row["title"];
echo "$date<br><a href=\"http://www.crazy-cutie.com/index.php?id=$id\">$title</a><br><br>";
}
?>
What am I doing wrong??? =/