From the course: Getting Started as a Full-Stack Web Developer
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Record the reservation in a database
From the course: Getting Started as a Full-Stack Web Developer
Record the reservation in a database
- [Instructor] When last we left our Intrepid website, we could enter reservation in up here, hit Reserve, and we'd get that information spit back at us along with this message that "Will get back to you within 24 hours." But we both know that's a lie. The information just got thrown away. So now, we're going to save it in a database. The earlier video SQL the database query language showed you how to view and change a database through a web interface called phpMyAdmin. I'm in phpMyAdmin right now, looking at a database that I set up for this course. This is where we'll store visitors reservation requests. The connect to a database video showed how to insert a record by sending SQL commands from a PHP program. Code that I created in that video has been carried over into the exercise files of this one. You'll find it inside the PHP directory in the dbconnect.php file. Now you saw this code work earlier from the terminal…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.