sn3p / utstats

Stats for Unreal Tournament 99
Other
13 stars 10 forks source link

fatal error? #29

Open c0br3tii opened 2 years ago

c0br3tii commented 2 years ago

Hi, what could be causing this error when opening page?

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/42/d897681007/htdocs/utstats/includes/functions.php:3 Stack trace: #0 /homepages/42/d897681007/htdocs/utstats/index.php(4): include() #1 {main} thrown in /homepages/42/d897681007/htdocs/utstats/includes/functions.php on line 3

hunterpl commented 1 year ago

Hi there!

please go to the file "functions.php" in folder location html " utstats/includes " and there please replace into this code 3 and 4 line:

$con = mysqli_connect($hostname, $uname, $upass);
mysqli_select_db($con, '$dbname');
hunterpl commented 1 year ago

everyone who want to put on their server stats board with top players, you can use much better this mod, only install like normal, will do the rest not requirement of mysql or anything else to getting data.

https://ut99.org/viewtopic.php?f=7&t=13754