Creating Databases for Web Applications

Slides:



Advertisements
Similar presentations
Creating Databases for Web Applications Courses example Persistent information. Cookies. Session Homework: Examine a computer (your own or in a lab) for.
Advertisements

PHP (2) – Functions, Arrays, Databases, and sessions.
Forms Review. 2 Using Forms tag  Contains the form elements on a web page  Container tag tag  Configures a variety of form elements including text.
Multiple Tiers in Action
David Evans CS200: Computer Science University of Virginia Computer Science Class 29: Vocational Skills How to Build a.
Chapter 9 Working with Forms. Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Creating databases for web applications Play quizzes Testing process regular expressions: form validation PHP coding handling forms Homework: regular expressions.
Creating Databases for Web Applications cookie examples lab time: favorites cookies & Sessions class time for group work/questions on projects Next class:
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Creating Databases for Web Applications Big Data. Net Neutrality. Decide on basic projects assignments. Homework: Start work on basic assignments. Read.
Creating Databases Local storage. join & split Classwork: show 1 table application. Share designs for oscars application. Adaptive select. Homework: [Catch.
Week 12 Working with Forms Objectives Understand how forms work Understand form syntax Create input objects Build forms within tables Build and.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
PHP. $_GET / $_POST / $_SESSION PHP uses predefined variables to provide access to important information about the server and requests from a browser.
Sessions and Cookies State Management, Cookies, Sessions, Hidden Fields SoftUni Team Technical Trainers Software University
 A website, also written Web site, web site, or simply site, is a group of Web pages and related text, databases, graphics, audio, and video files that.
Netprog CGI and Forms1 CGI and Forms A detailed look at HTML forms.
Sessions Brendan Knight A visitor accessing your web site is assigned a unique id. This id links to specific data that remains on the server. Sessions.
Creating Databases for Web Applications 3-Tier. Design vs Function vs Content. More SQL. More php. Homework: work on final projects.
Creating Databases applications for the Web: week 2 Basic HTML review, forms HW: Identify unique source for asp, php, Open Source, MySql, Access.
ITM © Port,Kazman 1 ITM 352 Cookies. ITM © Port,Kazman 2 Problem… r How do you identify a particular user when they visit your site (or any.
1 PHP HTTP After this lecture, you should be able to know: How to create and process web forms with HTML and PHP. How to create and process web forms with.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
Simple PHP Web Applications Server Environment
Creating Databases for Web applications
Creating Databases for Web Applications
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
Chapter 7 - Introduction to Common Gateway Interface (CGI)
CHAPTER 5 SERVER SIDE SCRIPTING
Information Systems in Organizations
PHP (Session 1) INFO 257 Supplement.
CSE 103 Day 20 Jo is out today; I’m Carl
State Management Cookies, Sessions SoftUni Team State Management
Are You Hungry Yet? RSS Feeds and the New Ways we Collect Information
Bell Ringer List five reasons why you think that some new businesses have almost immediate success while others fail miserably.
Creating Databases Local storage. join & split
Creating Databases Catch up presentations. Reading & writing files. Sessions. Homework: Starting planning ‘original’ project.
How to Write Web Forms By Mimi Opkins.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
PHP –MySQL Interview Question And Answer.
Creating Databases for Web Applications
DBW - PHP DBW2017.
19.10 Using Cookies A cookie is a piece of information that’s stored by a server in a text file on a client’s computer to maintain information about.
Content Management Systems
ITM 352 Cookies.
Web Programming Language
PHP FORM HANDLING Post Method
Intro to PHP & Variables
Cookies BIS1523 – Lecture 23.
Creating Databases for Web Applications
Software Engineering for Internet Applications
HTML5 and Local Storage.
Web Programming Language
Cookies and sessions Saturday, February 23, 2019Saturday, February 23,
Web Programming Language
Cookie and Session Bayu Priyambadha, S.Kom.
Mastering the Job Search
Cookies and Sessions.
PHP Forms and Databases.
Web Programming Language
Lesson 6: Web Forms.
[Based in part on SWE 432 and SWE 632 materials by Jeff Offutt, GMU]
PHP-II.
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Presentation transcript:

Creating Databases for Web Applications Session variables Big Data. Algorithms. Net Neutrality. Decide on basic projects assignments. Homework: Start work on basic assignments. Read articles and find at least one other.

SELECT Study Course Announcement on Pop Quiz. Read for the process of coming up with the answer…how many tables? What are conditions on individual records? These are the WHERE conditions. Assuming more than one table, what is (are) the ON condition(s) ? Is there any GROUPing (aka aggregation)? Are there condition(s) on the groups? Is there any ORDERing? Study one or more of sources found by you and your class mates. Review use of SELECT in examples. Study examples even if you already picked the one you will enhance.

Sessions Way to have persistent information for just the session for multiple pages Alternative is to send information via hidden inputs in form or directly composed query string. Kept on server computer, not client computer. In place of cookies (but does use a cookie or http header) $_SESSION will be an associative array for key/value pairs. REQUIREMENT that the session_start(); call be before anything is sent to the browser. This includes any HTML outside (before) the php delimiter! http://students.purchase.edu/jeanine.meyer/sessionTest.html

Sessions demo sessionTest.html sessionTest1.php sessionTest2.php sessionEnd.php Also demonstrates foreach construction for associative array. NOTE: I know the elements in the sessions array and there are just 2, but this is a good way for situations with more and/or unknown key values.

sessionTest.html <!DOCTYPE html><html><head> <title>Session demo </title></head> <body> <form action="sessionTest1.php"> Name: <input type=text name='cname'> <input type=submit value="SUBMIT"> </form> </body>

sessionTest1.php <?php session_start(); print ("This is just a test for session variables. <br>"); $_SESSION['customer'] = $_GET['cname']; $_SESSION['visits'] = 1; print("Hello, " . $_SESSION['customer']); print(" <br> This is visit number " . $_SESSION['visits']); print("<br> <a href='sessionTest2.php'>GO TO NEXT PAGE </a>"); ?>

sessionTest2.php <?php session_start(); print ("demonstrating session variables<br>"); print ("Hello, " . $_SESSION['customer'] ); $visits = $_SESSION['visits']; $visits = $visits + 1; print ("This is visit number $visits"); $_SESSION['visits'] = $visits; print ("<br> <a href='sessionTest2.php'>REPEAT </a> OR <br>"); print ("<a href='sessionTest.html'>START OVER </a> OR <br>"); print ("<a href='sessionEnd.php'>END SESSION</a>"); ?>

sessionEnd.php <?php session_start(); print ("Session information was <br>"); if ($_SESSION!="") foreach ($_SESSION as $key=>$val) { print ("$key was $val <br>"); } session_unset(); session_destroy(); ?>

Big Data buzz term, mixed meanings Volume, velocity, variability also Smart technology, Smarter Cities, etc… Volume, velocity, variability Format of data can be key-value pairs, parallel structures, XML, or tables Also, sometimes used in reference to any use of data, aka analytics, represented by Nate Silver combining polls + regression analysis to predict voting in elections

What is the data? Data can be collected by an organization This is the case with the main subject matter of this course: organization creates and manages data in standard (relational) database. OR gathered from variety of sources, some sources may not be [that] well-defined or complete "Everything is trying to tell you something" But what? Correlation is not causation but it may not matter.

Articles in popular press NPR story: http://www.npr.org/2013/03/07/173176488/the-big-data- revolution-how-number-crunchers-can-predict-our- lives?ft=3&f=111787346&sc=nl&cc=es-20130310 New York Times article: http://www.nytimes.com/2012/12/02/magazine/who-do-online- advertisers-think-you-are.html?pagewanted=all "I am the product not the customer…"

More All Google data, but gathered uncontrolled process: http://www.nytimes.com/2014/12/24/upshot/trending- holiday-gift-searches.html About job hunting: http://www.pbs.org/newshour/making-sense/ask- headhunter-big-data-hr-means-big-problems-job- seekers/

More Book reviews: Big Data http://online.wsj.com/article/SB100014241278873241789 04578342234223307970.html#printMode To Save Everything, Click Here http://tomslee.net/2013/03/evgeny-morozovs-to-save- everything-click-here.html Government proposals: https://www.whitehouse.gov/the- press-office/2015/01/12/fact-sheet-safeguarding-american- consumers-families

Algorithms … used for decision making College acceptance Jobs Sentencing, parole Populations to market to For loans Decisions on loans What else?

Basis of (for) Algorithms May be data, "Big", otherwise Training set Sample ? Potential for problems in the data

Responses Weapons of Math Destruction by Cathy O'Neal May be articles, blog Response from ACM (computing professional society) http://faculty.purchase.edu/jeanine.meyer/db/2017_usacm_statement_algor ithms.pdf

Net Neutrality What does this mean? What is status as of today? For you, for companies, for potential for growth & innovation What is status as of today?

Classwork / Homework Finalize teams One team member makes posting confirming team members Read articles cited or find your own, for example, recent article on use of Algorithms for decision making or Net Neutrality. Report on moodle (Introductions, etc. forum) Take an informed position