I used the same files which were already present.poudenes wrote: ↑Thursday 02 May 2019 16:54Where did you add the mysql credentials? so php knows how to connect?Trigun wrote: ↑Thursday 02 May 2019 16:53
GOT IT!!
my database is filled! whoehoo!
I put the config file in the www folder and added require '/var/www/config.php'; and require 'functions.php'; in the _fetch file.
i see the following output for all my devices.when I check the database i can see all the devices are added but am sure if the output is correct because of the undefined index?Code: Select all
Notice: Undefined index: Temperature Garage in /var/www/html/secure/functions.php on line 368 PHP Notice: Undefined index: Tuinsproeier(1hour) in /var/www/html/secure/functions.php on line 368
I didn't change any credentials.
when you created the database and the uses (both domotica) this was all set.
somewhere in the files these credentials are present.
does this help?