Script works under php 5.....upgrading to php 7
$result = (isset($sort)) ? mysqli_query........(as shown above)
isset($sort) does not appear to set the "sort" variable
Appears to be blank
After the table heading is selected, the script is re-executed as "detail_report.php?sort=rcvd_date"
How do I set the variable sort at the beginning of the script?
Thanks
This was a working sort before we upgraded our web server....
$result = (isset($sort)) ? mysqli_query($db, "Select * from ". $company . " where member = $member_numbers[$i] order by location, $sort, name")
: mysqli_query($db, "Select * from " . $company . " where member = $member_numbers[$i] order by location, name");
Data is display, just not sorted....
Thanks
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.