Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Connecting to the database from an application
I'm trying to write an application for Garden and have run into a roadblock with the database.
The application works fine with basic HTML, but I need to connect to my database and display/manipulate the data.
I have this code in the application manage.php controller:
When I try to load the page myapp/manage, I'm getting this error:
Any help you can provide is greatly appreciated!
The application works fine with basic HTML, but I need to connect to my database and display/manipulate the data.
I have this code in the application manage.php controller:
$DataSet = $Database->Select('Name')->From('GDN_User')->Get();
When I try to load the page myapp/manage, I'm getting this error:
Undefined variable: Database
Any help you can provide is greatly appreciated!
0
Comments
Database = Gdn::Database();
should do the trick.