Changeset 6965 for temp/trunk/html/admin
- Timestamp:
- 2006/10/27 15:45:15 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/batch/daily.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/batch/daily.php
r6964 r6965 256 256 for($i = 0; $i <= $age_loop; $i++) { 257 257 $start_age = $i * 10; 258 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval '$start_age year'";258 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval '$start_age' year"; 259 259 if($i < $age_loop) { 260 260 $end_age = $start_age+9; 261 $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age year'";261 $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year'"; 262 262 }else{ 263 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age year'";263 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year"; 264 264 $end_age = 999; 265 265 } … … 298 298 for($i = 0; $i <= $age_loop; $i++) { 299 299 $start_age = $i * 10; 300 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval '$start_age year'";300 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval '$start_age' year"; 301 301 if($i < $age_loop) { 302 302 $end_age = $start_age+9; 303 $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age year'";303 $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year'"; 304 304 }else{ 305 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age year'";305 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year"; 306 306 $end_age = 999; 307 307 }
Note: See TracChangeset
for help on using the changeset viewer.
