Database Concepts CPTE 212 3/19/2015 John Beckett.

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

UFCE8V-20-3 Information Systems Development 3 (SHAPE HK)
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
Multiple Tiers in Action
Lecture 4: Introduction to PHP 3 PHP & MySQL
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
1 Open Source Programming. -Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings.
TOPIC 1 – SERVER SIDE APPLICATIONS IFS 234 – SERVER SIDE APPLICATION DEVELOPMENT.
+ 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.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP.
Create an online booking system (login/registration)
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
PHP Data Object (PDO) Khaled Al-Sham’aa. What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform interface.
DWA Example Scenarios This presentation shows a number of the most common scenarios used with the Distributed Websydian Architecture. Note that there are.
Is Apache CouchDB for you?
Pradeep Tallogu Deepak Avanna Sharath Madathil
Simple Database.
IST 210 Web Application Security. IST 210 Introduction Security is a process of authenticating users and controlling what a user can see or do.
CPTE 212 “Lab” Configuration 1/13/2015 John Beckett.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Advanced PHP: Using PHP with MySQL C. Daniel Chase The University of Tennessee at Chattanooga.
 PEAR supplies a number of open source extensions to PHP including its DB package, which provides a database abstraction layer  so that the PHP programmer.
Database APIs and Wrappers
1 Welcome to CSC 301 Web Programming Charles Frank.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
Case Study Dynamic Website - Three Tier Architecture
Web Architecture Introduction
Accessing Relational Databases from the World Wide Web by Tam Nguyen & V. Srinivasan Presented by Megan Thomas and Randi Thomas CS294-7 February 11, 1999.
CD Collection Hector Urtubia Fall Summary Motivation and Objective Technologies Used Project Design Database Design and Integration Demo.
PHP Workshop ‹#› PHP Data Object (PDO). PHP Workshop ‹#› What is PDO? PDO is a PHP extension to formalise PHP's database connections by creating a uniform.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Group Name: PNT Group Members: Prabin Joshi and Ngoc Vu.
+ Connecting to the Web Chapter 7. + Chapter Objectives Understand and be able to set up Web database processing Learn the basic concepts of Extensible.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
PHP Introduction PHP is a server-side scripting language.
WEB SERVER SOFTWARE FEATURE SETS
PhpMyAdmin Matthew Walsh April 28, 2003 CMSC Shawn Sivy.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Unit 1 – Web Concepts Instructor: Brent Presley.
Creating Databases applications for the Web: week 2 Basic HTML review, forms HW: Identify unique source for asp, php, Open Source, MySql, Access.
How Web Database Architectures Work CPS181s April 8, 2003.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
XAMPP.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Introduction to web development concepts
Relational database and SQL MySQL LAMP SQL queries
SQL Queries Relational database and SQL MySQL LAMP SQL queries
Web Design and Development
Server Concepts Dr. Charles W. Kann.
Multitier Architecture, MySQL & PHP
PHP / MySQL Introduction
Database Processing Applications
Database Driven Websites
Web Browser server client 3-Tier Architecture Apache web server PHP
MySQL Backup, Transfer and Restore
Tutorial 6 PHP & MySQL Li Xu
PHP Forms and Databases.
Presentation transcript:

Database Concepts CPTE 212 3/19/2015 John Beckett

Why use a database? Self-documenting Self-organizing Extensible –More data per ? –More transactions per hour

How to access a database < Write a program to read and write files DBMS included a DBML Database Management Language Standard DBML - > SQL

Database Access – 3-Tier Model Application Server (Apache or IIS) HTTP GET or POST HTTP Response JavaScript Server-Side Language Interpreter Content Database Server (e.g. MySQL) The database server may be physically housed on the Web server. We’ll be focusing on the relationship between Apache/PHP and the database server

Web App Server Database Server (MySQL) HW Server (Linux) SQL (Strings) Results (Objects) DB Protocol Note: the database server is in the same physical server as Apache and PHP for this class. There is no reason you can’t separate these functions on different computers. In a volume production environment, this is very likely. We’ll talk here as if the two functions were separated.

Oh, the Layers We Go Through… PHP has multiple language extensions that connect with the DB access protocol, which may be: –Some are unique to that database E.g. PHP’s mysql or mysqli API’s –A protocol supported by many databases (perhaps through a translation program) E.g. PHP’s ODBC API talking to the database server’s ODBC adapter SQL is carried over that protocol –Dialects of SQL vary somewhat between database engines –Some database engines have features others don’t have

Programming for the Web Connect to the database server –Username / password –…implies privileges –Yields a connection object Select a database Send SQL –Receive results from it Close the connection For all of these, there is a possibility of error result

Yet Another Language!!!! You’ll learn SQL in CPTR 319 For now: –Use phpmyadmin’s query function to generate sample SQL –Copy the SQL into your PHP program –Use PHP to edit the SQL so that it actually works for the specific case in question