Presentation is loading. Please wait.

Presentation is loading. Please wait.

+ 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.

Similar presentations


Presentation on theme: "+ 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."— Presentation transcript:

1 + Connecting to the Web Week 7, Lecture A

2 + 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. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

3 + Review and Questions Topics from last lecture Terminology Questions?

4 + 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

5 + 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

6 + 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

7 + 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

8 + 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

9 + 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

10 + 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

11 + 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

12 + HOW would we do this? an example (www.HighlandsForum.org)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)

13 + End Lecture 7a What do you think? Opinions on the topic? Questions?

14 + Connecting to the Web Week 7 Lecture B

15 + 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. KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

16 + Review and Questions Topics from last lecture Terminology Questions?

17 + Review Homework Assignment read questions class provides answers discuss any difficulties or problems

18 + Examples of Web sites using Databases Web page pulling data to display connection information query a table results programmer must format the results for display processing query results row-by-row Penn State Course Catalog

19 + Examples of Web sites using Databases Web page(s) allowing the update/edit of data connection information query (update) results table data is changed programmer formats form data into a query statement database management system updates data Angel (cms.psu.edu)

20 + Web Database Processing

21 + Web servers connect to Database servers They can be on the same machine or be connecting through network/internet

22 + 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

23 + Data Source Name (DSN) File data source a shared file, only requires dbms driver and access credentials System data source allows one computer to connect to the database server User data source only for the user who created it

24 + Data Source Name (DSN) System Data Source best choice for Web Server Allows Web Server to create a connection with the Database Server Users (browsers) requests are interpreted by the Web Server Web server then makes connection to Database Server to send queries

25 + Book Example Microsoft IIS (Internet Information Server) p. 368 instructions for setting up a web server on a windows machine

26 + 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

27 + 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

28 + PHP PHP pages can do many things process form results math connect to databases (select, insert, update, delete) Use text code to collect, manipulate, edit and use data

29 + PHP

30 +

31 +

32 +

33 + PHP – Forms to Update

34 + Discussion What do you think? Opinions of all this?

35 + 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


Download ppt "+ 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."

Similar presentations


Ads by Google