Top Banner
+ Connecting to the Web Week 7, Lecture A
35

+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

Dec 24, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+

Connecting to the WebWeek 7, Lecture A

Page 2: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

+Midterm Basics

Thursday February 28 during Class

The lab Tuesday, February 26 is optional review

Class on Tuesday February 26 – Review Session Come prepared with questions and topics you want to

review. Attendance sheet will be used.

Page 3: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Review and Questions Topics from last lecture

Terminology

Questions?

Page 4: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+We Have Web Sites

What capabilities are available in a static web site (one with no DB) view pages, images, video, etc. receive information

Who is this good for? small businesses personal web sites

Page 5: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+We Have Web Sites

What are some advantages of good web sites? easy to use universally accessible don't need to take college courses to be able to use them Web browsers are ubiquitous, no special software needed

Page 6: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+We Have Web Sites

What are some DISadvantages of static Web sites? information flows in one direction each page is built individually updates require access to the files and some knowledge

Page 7: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+We Have Data

What can we do with our DB? we can store lots of information we can examine and analyze our information we can update our information it's robust and good at what it does

Page 8: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+We Have Data

What are some drawbacks of the DB? steep learning curve to do basic actions setting up accounts for each person to access it requiring special software to use it possibly limited to specific machines or networks knowledge of databases/SQL required

Page 9: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Let’s put them together!

Can we get the advantages of the web and the power of a DB together?

static Web sites easy to use and universally accessible don't need to take college courses to be able to use them Web browsers are ubiquitous, no special software needed

Databases we can store lots of information we can examine and analyze our information we can update our information

Page 10: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+WHY would we do this?

allow web sites to be much more powerful

use web sites to collect, analyze, and share data from a DB

make user-friendly methods for people to access DB they will probably never know they are using a DB

Page 11: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+HOW would we do this?

what are the parts? web server database that accepts connections some type of code

types of web servers

types of databases

types of code

Page 12: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+HOW would we do this?

an example (www.HighlandsForum.org) MySQL (database) ColdFusion (code) Apache (Web server)

How are they working?

What are we going to use in class? Windows Server (Web server) PHP (code) SQL Server (database)

Page 13: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+End Lecture 7a

What do you think?

Opinions on the topic?

Questions?

Page 14: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+

Connecting to the WebWeek 7 Lecture B

Page 15: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

+Midterm Basics

Thursday February 28 during Class

The lab Tuesday, February 26 is optional review

Class on Tuesday February 26 – Review Session Come prepared with questions and topics you want to

review. Attendance sheet will be used.

Page 16: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Review and Questions Topics from last lecture

Terminology

Questions?

Page 17: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Review Homework Assignment

read questions

class provides answers

discuss any difficulties or problems

Page 18: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Examples of Web sites using Databases

Web page pulling data to displayconnection informationquery a tableresultsprogrammer must format the results for

displayprocessing query results row-by-row

Penn State Course Catalog

Page 19: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Examples of Web sites using Databases

Web page(s) allowing the update/edit of dataconnection informationquery (update) results table data is changedprogrammer formats form data into a query

statementdatabase management system updates data

Angel (cms.psu.edu)

Page 20: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Web Database Processing

Page 21: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Web Database Processing

Web servers connect to Database servers

They can be on the same machine or be connecting through network/internet

Page 22: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+ODBC

Open DataBase Connectivity

is a standardized architecture that is the tool a Web Server can use to connect to a Database server.

will use a Database driver appropriate for the DB server

Can process, reformat or pass on SQL to DB

Page 23: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Data Source Name (DSN)

File data sourcea shared file, only requires dbms driver

and access credentials

System data sourceallows one computer to connect to the

database server

User data sourceonly for the user who created it

Page 24: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Data Source Name (DSN)

System Data Sourcebest choice for Web ServerAllows Web Server to create a connection

with the Database ServerUsers (browsers) requests are interpreted

by the Web ServerWeb server then makes connection to

Database Server to send queries

Page 25: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Book Example

Microsoft IIS (Internet Information Server)

p. 368

instructions for setting up a web server on a windows machine

Page 26: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

PHP: Hypertext Processor

code is lines of text in a text document saved with a .php file extension

PHP code mingles with HTML code

Page 27: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

Browser requests a page with a .php extension

Web Server sees the extension and knows to read and process the page

Web Server reads the code, takes appropriate actions, then generates results

Results are sent back to the browser as HTML

Page 28: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

PHP pages can do many thingsprocess form resultsmathconnect to databases (select, insert,

update, delete)

Use text code to collect, manipulate, edit and use data

Page 29: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

Page 30: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

Page 31: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

Page 32: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP

Page 33: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+PHP – Forms to Update

Page 34: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Discussion

What do you think?

Opinions of all this?

Page 35: + Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.

+Seven weeks down 9 to go!

Next week (week 8) Mid-Term Exam One lecture of Exam Prep One lecture to take Exam No lab next week (office hour time) No Homework due next week