Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Connection Problems with CSV Download Button

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Connection Problems with CSV Download Button

Unread post 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
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Connection Problems with CSV Download Button

Unread post 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.
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Re: Connection Problems with CSV Download Button

Unread post by pmjd »

That change has got it working now, thank you
Post Reply