$sb, 'o' => $o))); $sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM trips LEFT JOIN clients ON trip_client_id = client_id WHERE (trip_purpose LIKE '%$q%' OR trip_source LIKE '%$q%' OR trip_destination LIKE '%$q%' OR trip_miles LIKE '%$q%' OR client_name LIKE '%$q%') AND DATE(trip_date) BETWEEN '$dtf' AND '$dtt' AND trips.company_id = $session_company_id ORDER BY $sb $o LIMIT $record_from, $record_to" ); $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $total_found_rows = $num_rows[0]; $total_pages = ceil($total_found_rows / 10); ?>

Trips

" id="advancedFilter">

"> $client_name"; } if($round_trip == 1){ $round_trip_display = ""; }else{ $round_trip_display = ""; } ?>
Date Client Purpose Source Destination Miles Action