Jump to content

Archiving using date.


virtuexru

Recommended Posts

OK. So I have the date set in my database under DATE

 

How would I go about only giving the results for say.. March using this, like how would I specify what date to start at.. should I use

 

while($date > 03-01-07) or something?

 

<?php
$display = "SELECT id, date FROM postlist ORDER BY id DESC LIMIT $offset, $rowsPerPage";
$result  = mysql_query($display) or die(mysql_error());
?>

 

Link to comment
https://forums.phpfreaks.com/topic/45313-archiving-using-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.