hello pros,
Please help. Any coding examples are deeply appreciated.
I have a system setup to browse through entries in my MySQL database by WEEK. I am trying to create a navigation system to run through the WEEKS of the year but am having no luck.
Here's what my code looks like for the navigation.
$yearWeek = date('YW');
$prevYW = date( 'YW', strtotime(($yearWeek-1).'01') );
$nextYW = date( 'YW', strtotime(($yearWeek-1).'01') );
What am I doing wrong? When I call my $prevYW and $nextYW my numbers come up like so:
$nextYW = 20065
$nextYW = 20065
Thanks in advance!