header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; } } elseif (isset($_GET["searchCompany"])) { if (isset($_GET["icname"])) { $arr = search_by_vin($_GET["icname"]); explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; } } elseif (isset($_GET["searchVehicle"])) { if (isset($_GET["vin"])) { $arr = search_by_icname($_GET["vin"]); explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; } } elseif (isset($_GET["searchAccident"])) { if (isset($_GET["accidentNo"])) { $arr = search_by_accidentNo($_GET["accidentNo"]); explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; }
// Run corresponding search using search_by_name($enteredField) $arr = search_by_trn($_GET["trn"]); // Iterate over returned array exploding each row of data // place respective indexes into specific arrays //eg. victim_accinfo = [record0,record1] //where record = [trn,lname,fname,....] entonces another list of data explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; } } elseif (isset($_GET["searchCompany"])) { if (isset($_GET["icname"])) { //$arr = search_by_vin($_GET["icname"]); $arr = search_by_icname($_GET["icname"]); explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered"; } } elseif (isset($_GET["searchVehicle"])) { if (isset($_GET["vin"])) { //$arr = search_by_icname($_GET["vin"]); $arr = search_by_vin($_GET["vin"]); explode_tables($arr); // Redirect to view records page header('Location: ' . $pageLink . ''); } else { $msg = "No data entered";