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 trial
Trevor Wood
17,828 PointsRetrieving data from a database question
I'm trying to take information from a database and display it on my website.
I'm also trying to have users be able to send information to a database. ( i.e. creating an account and such)
I've watched the database foundations and the PHP and MySQL videos however, I'm still a little uncertain on how to do this. And I've already made the database along with the forms.
Can anyone give me an example or something on how to do this?
Any advice is much appreciated.
Saransh Kalia
516 PointsSaransh Kalia
516 PointsWell you need to first setup a database connection through PHP using MySqli or PDO, after that you can send queries and retrieve the information.