• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved ZnoteAAC config error

Loth Gena

Roxeria 8.60 Developer
Joined
Feb 5, 2014
Messages
245
Reaction score
23
Location
UK
Hello, i tried to set up znote aac to my server and i had to edit out the connect file to the correct MySQL details - which i did but i get an error:

Parse error: syntax error, unexpected '.0' (T_DNUMBER), expecting ']' in C:\xampp\htdocs\engine\database\connect.php on line 197

It is saying its expecting a closed square bracket instead of the ".0" but what i had to write the host which is this computer so i wrote 127.0.0.1
Here is exacly what i wrote in the configuration file:

mysql_connect($config [127.0.0.1], $config[root], $config[PASSWORD]) or die('<h1>Failed to connect to database.</h1>'. $install);
mysql_select_db($config[ots]) or die('<h1>Connection accepted but failed to find configured database name.</h1>'. $install);


the red bits are the bits i had to write.
Any ideas? i think im not meant to write 127.0.0.1 but then what should i write?
 
Last edited:
Back
Top