Answer the question
In order to leave comments, you need to log in
How to retrieve data from the database by the latest date?
HTML
PHP
Answer the question
In order to leave comments, you need to log in
First, the code in the question must be inserted as text, in the appropriate tag, so that you can normally quote your "code".
Secondly, it would be nice to learn at least the basic basics of sql
Thirdly, queries should always be created through prepared expressions, this should be at the level of habit, in addition - take out the sql code into separate string variables so that they can be displayed at any time and look. Well, normal formatting for code, including query strings, helps a lot.
If you at least format the query itself, you will most likely see an error right away if you have at least some understanding of sql.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question