Most visitors online was 8830 , on 6 Feb 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!The error:
PHP Parse error: syntax error, unexpected '[' in /var/www/html/sources/public/register.php on line 14
The line of code:
return $mysqli->query("SELECT COUNT(*) FROM accounts WHERE $param ='".$mysqli->real_escape_string($input[$field])."'")->fetch_row()[0] == 0;
EDIT: The line of code had to be changed to this:
return $mysqli->query("SELECT COUNT(*) FROM accounts WHERE $param ='".$mysqli->real_escape_string($input[$field])."'")->fetch_row(0) == 0;
after you're done installing chmod the file back# cd /assets/config
chmod 777 database.php
chmod 644 database.php