how to check if the date is saturday.
<input id="datePicker" name="datePicker" type="text" class="textinput date-pick">
my code:
if(date('Y-m-d', strtotime('this Saturday')) == $_SESSION['search_date']) {
echo 'Event this saturday';
} else {
echo 'Event on the others day';
}
above code echoing only for the next week event! if i search for week after or 3 week etc, is not showing the result?
take a look at date() in the php-documentation. you chould change your code to something like this: