Getting Fatal Error when trying to enter database details

Hi I am getting fatal error when I am trying to create website using Pligg cms

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/ssd4/854/7131854/public_html/pligg-cms-master/install/install3.php:38 Stack trace: #0 /storage/ssd4/854/7131854/public_html/pligg-cms-master/install/install.php(40): include() #1 {main} thrown in /storage/ssd4/854/7131854/public_html/pligg-cms-master/install/install3.php on line 38

Please help me how to correct this

Either downgrade your PHP version to 5.6 (Settings > General) or use the newer mysqli_qurery($link, $query);