From 83f2550d816e73ea875dc44f1fa43e73c0990fc4 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 10 Aug 2021 15:52:37 -0400 Subject: [PATCH] Got Export to CSV to work in Trips will add some more customizations to it --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index a3ea90ea..e71f0a6b 100644 --- a/post.php +++ b/post.php @@ -3877,7 +3877,7 @@ if(isset($_GET['force_recurring'])){ if(isset($_GET['export_trips_csv'])){ //get records from database - $query = $db->query("SELECT * FROM trips WHERE company_id = $session_company_id ORDER BY trip_date DESC"); + $query = mysqli_query($mysqli,"SELECT * FROM trips WHERE company_id = $session_company_id ORDER BY trip_date DESC"); if($query->num_rows > 0){ $delimiter = ",";