Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrian Aberts
1,832 PointsSecure database connection?
I haven't reached the point to need this just yet, but what if i wanted to make a desktop application for my website, which would allow users to login and view messages? The only way i can think of is connecting to the mysqli database, or directly communicating with the server using ports? (which in my case i don't think would be doable)...
in python you can edit the file and see all the code, so if i were to connect to the database, how would i keep people from using the password to login and see data they aren't supposed to? or is there some other way to do this?
1 Answer
Kristian Gausel
14,661 PointsCheck out the course on how to make a REST API, that is one viable solution.