Warning: Attempt to read property "connect_error" on null in /home/jr1246/public_html/year2/CI536-Group-Rota-Project/logic/get_all_timeoff_requests.php on line 4

Fatal error: Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, null given in /home/jr1246/public_html/year2/CI536-Group-Rota-Project/logic/get_all_timeoff_requests.php:8 Stack trace: #0 /home/jr1246/public_html/year2/CI536-Group-Rota-Project/logic/get_all_timeoff_requests.php(8): mysqli_query(NULL, 'SELECT * FROM `...') #1 {main} thrown in /home/jr1246/public_html/year2/CI536-Group-Rota-Project/logic/get_all_timeoff_requests.php on line 8