Answer the question
In order to leave comments, you need to log in
Is it possible to do an automatic quote of the day in pure PHP?
Hey! In the course of learning PHP, I set out to make an automatic display of the quote of the day on the screen.
I found a (very strange, as for me) code of the form:
if(date('d.m.Y') == '25.03.2022') {echo 'Цитата один';}
else {
if (date('d.m.Y') == '26.03.2022') {echo 'Цитата два';}
} else {
if (date('d.m.Y') == '27.03.2022') {echo 'Цитата три';} }
Answer the question
In order to leave comments, you need to log in
Block with three borders (no top, if anything)
Inside the element with :before
and :after
, which will make up the top border
How "harmful" is it to performance if I check mySQL with quote tables every time the page is updated?
If there are other concepts for performing a similar task - share your ideas, please!
Do I understand correctly that I should bind this case to the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question