B
B
Boris Yakushev2015-09-22 18:50:21
MySQL
Boris Yakushev, 2015-09-22 18:50:21

Mysql sort by date?

Good afternoon, tell me how to do this kind of sorting?
We have:

$result = mysqli_query($link, "SELECT *, DATE_FORMAT(brithday, '%d.%m.%Y') as brithday 
                FROM bdtable WHERE brithday = 'year-08-day'");

those. output for a specific month, with any other values. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2015-09-22
@za4me

Doka
In your case - MONTH(date)
WHERE MONTH(brithday) = 8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question