Skip to main content

Filter range of date using Between Query In PHP/MySQL


This code will teach you on how to filter date using between query in php and mysql. The feature of this code is it filter the date and sum all fields in database base on the filter date. leave comment if you have a question in this code, happy coding.

database name:between

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byriefu (not verified)on Fri, 02/06/2015 - 14:07

what if i use 2 different fields date then the output is going to be display in table form.. just what @Munya Mazvimba said . thanks in advance !

Submitted byamiruddin (not verified)on Tue, 11/19/2019 - 12:39

where can i get sourcode

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.