Skip to content
Advertisement

how to display data on 2 different date ranges

I have the following date data, which is used to display MySQL data parameters

and I have the following query:

The result I want is that the program will display data from date :$tgaw to date: $tgak

Advertisement

Answer

You should be using prepared statements here, and also use the MySQL functions to add one month to the upper date in the range.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement