Database is empty

Warning: Undefined variable $link in /var/www/lankaevents.lk/public_html/picscript.php on line 29

Fatal error: Uncaught TypeError: mysqli_close(): Argument #1 ($mysql) must be of type mysqli, null given in /var/www/lankaevents.lk/public_html/picscript.php:29 Stack trace: #0 /var/www/lankaevents.lk/public_html/picscript.php(29): mysqli_close() #1 {main} thrown in /var/www/lankaevents.lk/public_html/picscript.php on line 29