All data from mysql is not showing by php condition
0
$sqlforData = "SELECT *, `main`.`email` as useremail, `main`.`ID` as `userID`, `mail_owners`.`country_code_field` as `micountry`, DATE(`main`.`time`) as `mrDate` FROM `main` LEFT JOIN `mail_owners` ON `main`.`ID` = `mail_owners`.`ID` WHERE `main`.`is_deleted` = 0 ORDER BY `main`.`ID`, DATE(`main`.`time`) DESC"; this is my query I'm fetching all the data and trying to show them by php condition like this. while ($table = mysqli_fetch_array($result)) { echo strtotime($table['mrDate']) >= strtotime($from) && strtotime($table['mrDate']) <= strtotime($to); } but this is not showing all the data as I've more then 30k data....and I can just get half of the data from my database. and I'm also getting issues is I set the from date to Augest 1, 2018. After