Answer the question
In order to leave comments, you need to log in
How to get month from date?
I make filters on the site, by city, month and day.
For the city, I did the equation WHERE `city` = $_GET['city']
Here is the query itself:
$cat_result = mysqli_query( "SELECT * FROM `poster` WHERE `cat` = '".$cat_q['id']."' AND `city` = '".$_GET['city']."'");
$cat_result = mysqli_query( "SELECT * FROM `poster` WHERE `cat` = '".$cat_q['id']."' AND `date` = '".$_GET['month']."'");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question