Answer the question
In order to leave comments, you need to log in
How to fetch from a MySQL database?
Hello colleagues!
There is an entity with attributes name and date
Using php, we send a mysql query to the selection
. We need to get from all names one by one with the largest date .
Example
Let's say we have the following table:
Name | Date
-----------------
Петя | 10.02.2014
Петя | 21.05.2013
Ваня | 21.05.2013
Петя | 30.07.2015
Ваня | 03.10.2012
Даня | 12.08.2014
Петя | 30.07.2015
Ваня | 21.05.2013
Даня | 12.08.2014
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