C
C
cheat_gainer2021-05-08 13:05:52
PHP
cheat_gainer, 2021-05-08 13:05:52

How to retrieve data from the database by the latest date?

HTML
6096633f6ca3c862370582.png
PHP
6096634f60dc9021594355.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2021-05-08
@ThunderCat

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 question

Ask a Question

731 491 924 answers to any question