I tried replacing
CODE
$result = mysql_query("SELECT FROM_UNIXTIME( timestamp, '%M' ) AS get_month, COUNT(*) AS entries FROM php_blog GROUP BY get_month")
with this CODE
$result = mysql_query("SELECT FROM_UNIXTIME( timestamp, '%M' ) AS get_month, COUNT(*) AS entries FROM php_blog GROUP BY get_month ORDER BY get_month ASC");
but it stayed the same.list code
CODE
<?php include("/mnt/w0603/d08/s07/b025e6a3/www/vintage/cookiecheck.php");
include($headervar.$skin.$extension);?>
<div class="div" id="content">
<p class="h4"> . Archives Page</p><br>
<p class="content">Here is where you can find any archived information especially past blogs. </p>
<br>
<?php
mysql_connect ('****', '****', '****');
mysql_select_db ('****');
$result = mysql_query("SELECT FROM_UNIXTIME( timestamp, '%M' ) AS get_month, COUNT(*) AS
entries FROM blog GROUP BY get_month" );
while ($row = mysql_fetch_array($result)) {
$get_month = $row['get_month'];
$entries = $row['entries'];
echo "<a href=\"http://www.walkinginchrist.org/vintage/archive.php?month=" . $get_month . "\">" .
$get_month . "</a> (" . $entries . ")<br />";
}
?>
</div>
include($headervar.$skin.$extension);?>
<div class="div" id="content">
<p class="h4"> . Archives Page</p><br>
<p class="content">Here is where you can find any archived information especially past blogs. </p>
<br>
<?php
mysql_connect ('****', '****', '****');
mysql_select_db ('****');
$result = mysql_query("SELECT FROM_UNIXTIME( timestamp, '%M' ) AS get_month, COUNT(*) AS
entries FROM blog GROUP BY get_month" );
while ($row = mysql_fetch_array($result)) {
$get_month = $row['get_month'];
$entries = $row['entries'];
echo "<a href=\"http://www.walkinginchrist.org/vintage/archive.php?month=" . $get_month . "\">" .
$get_month . "</a> (" . $entries . ")<br />";
}
?>
</div>
archives code
CODE
<?php include("/mnt/w0603/d08/s07/b025e6a3/www/vintage/cookiecheck.php");
include($headervar.$skin.$extension);?>
<div class="div" id="content">
<?php
mysql_connect ('****', '****', '****');
mysql_select_db ('****');
if (!isset($_GET['month'])) {
die("Invalid month specified.");
}
else {
$year = (int)$_GET['month'];
}
$result = mysql_query("SELECT timestamp, id, title FROM blog WHERE FROM_UNIXTIME( timestamp, '%M' ) = '$month' ORDER BY id ASC");
while ($row = mysql_fetch_array($result)) {
$date = date("m/j/Y", $row['timestamp']);
$id = $row['id'];
$title = $row['title'];
?>
<p> <b>Written On</b> :: <?php echo $date; ?><br />
»<a href="entry.php?id=<?php echo $id; ?>"><?php echo $title; ?></a>
</p>
<?php
}
?>
</div>
include($headervar.$skin.$extension);?>
<div class="div" id="content">
<?php
mysql_connect ('****', '****', '****');
mysql_select_db ('****');
if (!isset($_GET['month'])) {
die("Invalid month specified.");
}
else {
$year = (int)$_GET['month'];
}
$result = mysql_query("SELECT timestamp, id, title FROM blog WHERE FROM_UNIXTIME( timestamp, '%M' ) = '$month' ORDER BY id ASC");
while ($row = mysql_fetch_array($result)) {
$date = date("m/j/Y", $row['timestamp']);
$id = $row['id'];
$title = $row['title'];
?>
<p> <b>Written On</b> :: <?php echo $date; ?><br />
»<a href="entry.php?id=<?php echo $id; ?>"><?php echo $title; ?></a>
</p>
<?php
}
?>
</div>