- Code: Select all
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in G:\xampp\htdocs\cozworld\lgsl\lgsl_files\lgsl_class.php:130 Stack trace: #0 G:\xampp\htdocs\cozworld\lgsl\lgsl_files\lgsl_class.php(308): lgsl_database() #1 G:\xampp\htdocs\cozworld\lgsl\lgsl_files\lgsl_list.php(15): lgsl_query_group() #2 G:\xampp\htdocs\cozworld\lgsl\index.php(33): require('G:\\xampp\\htdocs...') #3 {main} thrown in G:\xampp\htdocs\cozworld\lgsl\lgsl_files\lgsl_class.php on line 130
Need to adjust this so it works with PHP 7 can someone help me fix this coding?
$lgsl_database = mysql_connect($lgsl_config['db']['server'], $lgsl_config['db']['user'], $lgsl_config['db']['pass']) or die(mysql_error());
$lgsl_select_db = mysql_select_db($lgsl_config['db']['db'], $lgsl_database) or die(mysql_error());
Thank you in advance!