Changeset 26057
- Timestamp:
- 12/04/07 21:53:28 (8 months ago)
- Files:
-
- 1 modified
-
a-year-before/trunk/ayb_posts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
a-year-before/trunk/ayb_posts.php
r26056 r26057 96 96 $q="SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status='publish' AND post_password='' AND YEAR(post_date_gmt)=".$datum['year']." AND MONTH(post_date_gmt)=".$datum['mon']." AND DAYOFMONTH(post_date_gmt)=".$datum['mday']." ORDER BY post_date_gmt"; 97 97 $q="SELECT ID, post_title, post_date FROM $wpdb->posts WHERE post_status='publish' AND post_password='' AND (post_date >= '".$range_date1."' AND post_date <= '".$range_date2."') ORDER BY post_date DESC"; 98 echo $q;98 //echo $q; 99 99 $result = $wpdb->get_results($q, OBJECT); 100 100 //print_r($result);
