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?
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: