The table that called "events" has 2 paranetes. StartTime and EndTime that contain UNIX time.
ID StartTime EndTime
1 1522530000 1532590000
i got 2 values from the user that contain Unix Times.
$start = 1522530000;
$end = 1532590000;
Im trying to get the rows between the times that i got:
SELECT * FROM `events` WHERE (StartTime <= '$start' AND EndTime >= '$end')
And its work but not always, like:
$start = 1530392400;
$end = 1534107599;
what can i do?