Show results for the week
View Single Post
12-12-2012, 08:19 PM
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Thanked 2,598 Times in 2,567 Posts
Glad to be of help! Hehehe.
The initial problem was here:
$past = date('Y-m-d', strtotime('-1 weeks');
. You're simply missing the ending ); however, using the functions within the query directly is IMO a much better option.
Users who have thanked Fou-Lu for this post:
View Public Profile
Find More Posts by Fou-Lu