1 Insert, Update and Delete Queries. 2 Return to you Address Book database. Insert a record.

Slides:



Advertisements
Similar presentations
Day 9. SELECT INSERT UPDATE DELETE » The standard UPDATE statement. UPDATE table SET field1=val1, field2=val2 WHERE condition » Multiple table UPDATE.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Insurance or Contract Codes This module is for building new insurance or contract codes, or changing existing codes.
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
GENERAL REGISTRATION INSTRUCTIONS February 5-7, 2015.
U:/msu/course/cse/103 Day 23, Slide 1 Review of Day 22 What query did you use to search for an actor by name? –Return matches.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
PHP and SQL Server: Queries IST2101. Project Report 4 SQL Queries Due Sunday, 4/5 at 11:59pm Instructions on how to access team webspace and SQL database.
Create Mailing Labels (Word 2007) Word 2007 using the Mail Merge function and an Excel spreadsheet Create mailing labels from Member Rosters in.
© Yanbu University College YANBU UNIVERSITY COLLEGE Management Science Department © Yanbu University College Module 6:WEB SERVER AND SERVER SIDE SCRPTING,
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Server-side Scripting Powering the webs favourite services.
Working with a Database
Introducing Access Lesson 1. Objectives Start Access and explore the Database window Explore database objects Enter, edit, and delete records in a datasheet.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
Chapter 15: Using LINQ to Access Data in C# Programs.
Navigating database with windows forms.. Tiered applications  Provide a means to develop many presentations of the same app  Makes changes to the back.
Creating a Web Site to Gather Data and Conduct Research.
Making a database Karyl Slim 11IOTA. In today’s lesson, we started to create a database that would contain details of endangered species. To create the.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
PHP meets MySQL.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
MAIL MERGING IN MICROSOFT PUBLISHER CREATING LABELS AND DOCUMENTS FOR MULTIPLE PEOPLE AT ONCE.
FireRMS NEMSIS (Part 2) Presented by Laura Small FireRMS Quality Assurance.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
Week 7. Lecture 2 Functions, Arrays, PHP&MySQL. Function with More than one argument and a return statement For a function to return a value, the return.
Technology & Management Club Development Software Overview.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit G Using Forms to Control Input.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
Moodle with Style Integrating new technologies to empower learning and transform leadership.
CSC 240 (Blum)1 Forms and Importing Data in Access.
Creating PHPs to Insert, Update, and Delete Data CS 320.
PHP Form Introduction Getting User Information Text Input.
Windows Forms Navigating database with windows forms.
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
1 Database Systems Introduction to Microsoft Access Part 2.
1 / 61 Using the Customer Support Web Site © 2006, Universal Tax Systems, Inc. All Rights Reserved. Customer Support Site Objectives –In this chapter you.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/Programs/Microsoft Office/Microsoft Office.
PHP getting data from a MySQL database. Replacing XML as data source with MySQL Previously we obtained the data about the training session from an XML.
DataSet Your Database student test score Database Connection Your program needs to establish a connection to the database. Click on “Add New Data Source.”
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
>> PHP: File Uploads. Pre-requisite Go Online – Download file modify-item.php – copy it to your root folder (D:\xampp\htdocs\Buy4mMe) Web-Based Systems.
Producing a Mail Merged Letter Step 1 Create an Access database for Names and Addresses you can use the ‘Customers’ template in Group Work. Enter the necessary.
Click on this button to move to the previous slide of your notebook. Click on this button to move to the next slide of your notebook. Click on this button.
OBJECTIVES Learn how to view data using SQL and PHP Learn how to add new data using SQL and PHP PHP+SQL: View and Adding,
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
Creating Data Base & Sql Data Source
Using Macros, Switchboards, PivotTables, and PivotCharts
Web Design and Development
Database application MySQL Database and PhpMyAdmin
Chapter 4 MS ACCESS DATABASE.
Building Configurable Forms
Cookies BIS1523 – Lecture 23.
Together Let’s Design an Online Quiz
Parent Portal How to create a parent account
How to edit existing Bookings?
Creating Data Base & Sql Data Source
NSVFA Membership Renewal
Presentation transcript:

1 Insert, Update and Delete Queries

2 Return to you Address Book database. Insert a record.

3 Recall that this action provides the SQL, better yet it will provided the PHP that writes the SQL.

4 Copy the code and put it somewhere for safe keeping

5 Saved PHP-SQL code in Notepad

6 Mark a record and click the pencil icon to update that record.

7 Change some fields and click Go.

8 Rats. I didn’t see any SQL Update query to copy.

9 Mark a record and click on the Delete button

10 Copy the SQL for the DELETE, then decide whether you want to delete this record or not.

11 Saved DELETE query

12 Start two PHP files, place a form and a table with one row and two columns on the first page.

13 Add a list/menu and a submit button in column 1 and a radio group in column 2.

14 Corresponding code.

15 Add PHP code for putting names into list/menu.

16 Result so far.

17 Add a second form and second table with 1 row (to start) and 3 columns

18 Corresponding code

19 After the row ( ) but before end of table ( ), start PHP code block. Make array of database filed names.

20 Write a foreach loop that iterates over the FieldArray making a table row corresponding to each

21 Result so far.

22 Add SQL query before foreach loop, edit middle column code.

23 Result so far

24 Add non-breaking space ( ) to middle column

25 After non-breaking space was added to middle column

26 Add if so no Old data is showing for “Insert” choice

27 Problem The radio buttons do not hold onto the information about what choice was clicked before.

28 The top form’s action is the same page, so it can refer to its own $_POST array. I add some php script in the radio button tags to check the appropriate radio button.

29 Add if structure that “remembers” which item from the list was selected The extra word selected in the option tag will indicate which of the option should be showing.

30 Added some code so that textboxes are read only and gray when Delete is the chosen action

31 Remembers selected person, remembers selected action, grays out textboxes when delete is selected action.

32 Add submit button to bottom form.

33 Show old data in textbox (as starting point) when Update is selected action.

34 Result showing old data in textbox (as starting point) when Update is selected.

35 Insert Hidden Fields (to hold info from top form on bottom form so it can be passed to handler of bottom form)

36 Result of hidden fields added

37 PHP code to get values from top form onto bottom form

38 Handler code to determine action requested on calling page

39