Download presentation
Presentation is loading. Please wait.
1
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, frmcclurg@gmail.com © Copyright 2010 All Rights Reserved.
2
Recipe DB Application Part Two: Insert & Update Class Project http://webcert.kirkwood.edu/~fmccl urg/courses/php/slides/recipe02.ppt
3
Description: Top level design is a methodology that addresses the large picture first and then the details. For today’s in class project, will apply that methodology. Top Level Design
4
Discussion: The items below are the tasks and the procedure we will follow to complete the “create.php” application. 0.Create the page layout in HTML. 1.Convert HTML form to PHP. 2.Make form action self-referential. 3.Make the fields “sticky”. General Tasks
5
4.Connect, use and close the database (Steps 0, 1, 2 and 6). 5.Create function that populates drop down list with database values. 6.Determine if a submit button was pressed and which one. 7.Build the SQL statements for “SELECT”, “INSERT” and “UPDATE” (Step 3). General Tasks (continued 2)
6
8.Output SQL debug statements. 9.Execute SQL statements (Step 4). 10.Obtain results from INSERT statement (Step 5). 11.Obtain results from UPDATE statement (Step 5). 12.Obtain results from SELECT statement (Step 5). General Tasks (continued 3)
7
13.Protect SQL from “bad” values (validate SQL). 14.Prevent SQL execution upon error condition. 15.Status messages for correct operations. 16.Pop-up error dialog messages. General Tasks (continued 4)
8
to be continued... http://webcert.kirkwood.edu/~fmc clurg/courses/php/slides/html5.ppt
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.