I'm new to PHP and I tried to make the code at the very bottom work but I can't make it work so I'm asking for help here. so please help me
php version i use: 8.1.2
errors i get while i try to load the page with the code:
[Thu Feb 17 12:51:36.272143 2022] [proxy_fcgi:error] [pid 473273] [client (ip)] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected variable "$link_id", expecting ")" in /var/www/legionbooter/public_html/lib/class_db.php on line 86'
[Thu Feb 17 12:52:21.093521 2022] [proxy_fcgi:error] [pid 473263] [client (ip)] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected variable "$database", expecting ")" in /var/www/legionbooter/public_html/lib/class_db.php on line 86'
the /var/www/legionbooter/public_html/lib/class_db.php file (the code that doesn't work): https://pastebin.com/Es33qTiw