From the course: Hands-On Introduction: PHP

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Connect to a database

Connect to a database - PHP Tutorial

From the course: Hands-On Introduction: PHP

Connect to a database

- [Narrator] Talking to a database is one of the most common tasks PHP developers perform. Databases are the linchpin of most web applications, so that's exactly what we're going to do in this video. Using the provided database, we'll connect and retrieve data to display on a website. A couple of notes here. The SQL is provided in the exercise files. You can find them in 03_03b. And you can see the layout of the table we'll be talking to here. We have an id name, title, organization, bio, session name, session description, and track. Knowing these column names will be important. If you decide to install this on your local environment, you can go ahead and grab this database dump. If you want to install this in a code space, I've also provided a file to do that for you. You can go to the install.php file in 03_03b and then run this file in your code space. The database will get installed and you'll get no error messages,…

Contents