From the course: Database Foundations: Application Development
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Add data to a table with form controls
From the course: Database Foundations: Application Development
Add data to a table with form controls
- [Instructor] Using form controls, we can allow end users to add new rows of data to the database, without them having to know anything about how relational databases work or how our specific database is structured. Query_4 includes some form controls that accept user input. We have four text boxes and one selection list. Let's add a new row to the database. For the skew I'll fill in SOAP001. The product name is Olive Oil Bath Soap. We'll put it into the Bath and Beauty products category. The size is eight ounces and the price is 599. Let's press the Run Query button and the page returns the message that our row is inserted and it confirms the values that we submitted. And if you go back and then scroll up to query number three, we can run a select query against everything in the bath and beauty products category. And at the bottom, we should see our new product that we just entered. So our form is working. Let's go…
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.
Contents
-
-
-
-
(Locked)
What is PHP and Apache?2m 55s
-
Create a PHP web server10m 58s
-
(Locked)
Connect to the PHP server3m 37s
-
PostgreSQL functions4m 55s
-
(Locked)
Use PHP variables3m 4s
-
(Locked)
Use if/else to handle errors4m 53s
-
(Locked)
Add data to a database4m 7s
-
(Locked)
Format SELECT query results6m 24s
-
(Locked)
Filter results with form controls5m 40s
-
(Locked)
Add data to a table with form controls5m 29s
-
(Locked)
-
-