View Single Post
Old 09-09-2004, 06:23 AM   #3 (permalink)
welshbyte
Insane
 
Location: Wales, UK, Europe, Earth, Milky Way, Universe
Not quite sure what you're trying to do but maybe something like:

PHP Code:
$query ="SELECT entryid, entrytext,";
$query.=" DATE_FORMAT(entrydate, '%M %d, %Y %T') AS date";
$query.=" FROM blog ORDER BY entrydate DESC LIMIT 10";
$query.=" WHERE MONTHNAME(date) = '$required_month'";
$result=mysql_query($query); 
Is that what you were getting at?
__________________
There are only two industries that refer to their customers as "users". - Edward Tufte

Last edited by welshbyte; 09-09-2004 at 07:05 AM.. Reason: Didnt understand the question the first time!
welshbyte is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62