Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015 All Rights Reserved.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Copyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. SQL Workshop Day 4.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2014 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2014 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Best Practices for Website Design & Web Content Management.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2010, All Rights Reserved.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2014, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Web Database Programming Week 6 Using Templates & Updating Web Database.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 Agenda Views Pages Web Parts Navigation Office Wrap-Up.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Introduction To PHP 20 * Introducing the basics of programming * Discovering variables, loops, arrays and conditions * Integrating HTML and PHP Stations.
Introduction to JavaScript Kirkwood Continuing Education © Copyright 2014, Fred McClurg All Rights Reserved.
CSE3310: Web training A JumpStart for Project.
Server-side Scripting Powering the webs favourite services.
Mark Dixon Page 1 23 – Web applications: Writing data to Databases using PhP.
HTML B OOT C AMP Itinerary Kirkwood Continuing Education © Copyright 2015, Fred R. McClurg All Rights Reserved.
CSC 122 Term Project RGBYouth.com Content Management System Dane Young.
Website Development with Dreamweaver
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
FUNCTIONS AND STORED PROCEDURES & FUNCTIONS AND PROTECTING A DB AND PHP (Chapters 9, 15, 18)
PHP meets MySQL.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Who uses it? MichaelMoore.com What's it all about? Rapid Development Clean, Pragmatic Design.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
Kirkwood Center for Continuing Education By Fred McClurg, Introduction to PHP and MySQL Copyright © 2015, Fred McClurg, All Rights.
Creating PHPs to Insert, Update, and Delete Data CS 320.
June 23, 2001Database Creation Review and Exercises1 Database Creation Review 10: :30 Team Building Exercise ……………………….. John 10: :30 Database.
PHP Form Introduction Getting User Information Text Input.
Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Introduction to Views Stanford Drupal Camp April 6, 2013.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
FileZilla Introduction to Web Programming Kirkwood Community College Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
Database to HTML and Back again A programmers tale.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
CSE3310: Web training A JumpStart for Project. Outline Introduction to Website development Web Development Languages How to build simple Pages in PHP.
Web based Documentation Distribution Tools: MSAccess database (DSN) DreamWeaver Ultradev Microsoft Image Composer Clicking on the document will open an.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2016, Fred McClurg, All Rights.
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
Basics Components of Web Design & Development Basics, Components, Design and Development.
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
Microsoft FrontPage 2003 Illustrated Complete Creating a Web Site.
Introduction to Dynamic Web Programming
PHP Training at GoLogica in Bangalore
Kirkwood Center for Continuing Education
Introduction to NetDB2 IST210.
Tutorial 6 PHP & MySQL Li Xu
Presentation transcript:

Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2015 All Rights Reserved.

Class Project Recipe DB Application Part One: Search & Delete urses/php/slides/recipe01.ppt

Description: The first step of any project is to define the requirements. 1. Provide a web interface to the “cookbookdb” database. 2. Make sure that user can perform CRUD operations on data. 3.Function is usually more important than esthetics. For this project, we pick “fast” and “cheap”. Requirements Definition Good Fast Cheap

Review: An understanding of the database schema is important. 1.To rapidly create database and test data, import “cookbookdb.sql” or create the following database from scratch. Database Requirements

Description: It is pretty hard to beat pencil and paper for rapidly laying out ideas. The original sketch can be refined using “visio”, “dia”, “xfig”, or “OpenOffice/Libre Office”. The form controls can also be captured as images to be pasted and arranged in any graphics application. (see “webParts.html”) Interface Design of Class Project One

TitleRecipeCategoryDelete? JelloMix...Dessert PuddingMix...Dessert KoolaidMix...Beverage... Sketch of interface that handles the “R” and “D” of CRUD: Interface Design: Project One v1 Search Delete Selected

TitleRecipeCategoryDelete JelloMix...Dessert PuddingMix...Dessert KoolaidMix...Beverage... Alternate sketch of GUI interface that handles the “R” and “D” of CRUD: Interface Design: Project One v2 Search Delete

Sketch of GUI interface that handles the “C” and “U” of CRUD: Interface Design: Project Two Mix Cocoa packet with water. Heat. Stir. Hot Cocoa Create Modify Beverage

Discussion: The following procedure represents the tasks we will follow to complete the “search.php” application. 0.Convert from HTML to PHP. 1.Perform the following tasks: a.Initialize variables (Step 0) b.Connect to database (Step 1) c.Use a database (Step 2) d.Close the database connection (Steps 6). General Tasks

2.Perform the following tasks: a.Build the SQL “SELECT” statement (Step 3). b.Execute the SQL statement (Step 4). 3.Build a SQL debug statement. (optional) 4.Build a HTML table with database data: a.Get results from “SELECT” statement (Step 5) b.Display data in dynamic HTML table. General Tasks

5.Remove the static HTML table. 6.Make form changes: a.Make form self-referential (action flexibility). b.Make text field “sticky” (remember previous state). 7.Populate drop-down list with DB values. General Tasks (cont. 2)

8.Add search capabilities for title. 9.Add search for category (optional). 10.Add search for content (optional). 11.Make checkboxes “sticky” (optional). 12.Separate CSS into a separate file. 13.Separate JavaScript into separate file. General Tasks (cont. 3)

Discussion: The items below are the tasks and the procedure we will follow to complete the “delete.php” application. 14.Perform the following tasks: a.Connect and use the database (Steps 1 & 2). b.Build the SQL “DELETE” statement (Step 3). c.Execute the SQL statement (Step 4). d.Obtain results from “DELETE” statement (Step 5). General Tasks (cont. 4)

to be continued... urses/php/slides/recipe02.ppt