Page 1 of 1

Connection Problems with CSV Download Button

Posted: Fri Sep 10, 2021 1:49 pm
by pmjd
I followed the instructions from the repository to add a "Download to CSV" button to a form.
https://github.com/nuBuilder/nuBuilder- ... oad_to_csv

However when I try it I get the following error

Code: Select all

Error!: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
Anyone know why this may not be working?

Thanks,
Paul

Re: Connection Problems with CSV Download Button

Posted: Fri Sep 10, 2021 1:59 pm
by kev1n
Try replacing the line

Code: Select all

include("nuconfig.php");
with

Code: Select all

global $nuConfigDBHost;
global $nuConfigDBName;
global $nuConfigDBUser;
global $nuConfigDBPassword;
in the Procedure.

Re: Connection Problems with CSV Download Button

Posted: Fri Sep 10, 2021 3:47 pm
by pmjd
That change has got it working now, thank you