Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
Advertisements

Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
WaveMaker Visual AJAX Studio 4.0 Training
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Murach's MySQL, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
The Collections Keeper A collections management system Brian J. Mullen.
Relational Database. Converting Model to target implementation QSEE will produce 3 types of schema –XML document DTD XML schema –SQL Relational Database.
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Data Modelling. EAR model This modelling language allows a very small vocabulary: Just as English has nouns, verbs, adjectives, pronouns.., EAR models.
Lecture 4: Introduction to PHP 3 PHP & MySQL
Concepts of Database Management Sixth Edition
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
Project Implementation for COSC 5050 Distributed Database Applications Lab6.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
ERM to SQL. Abstraction Layers Conceptual –What data is held An Image and its meta-data Entity-Relationship model (ERM) Logical –How data is organised.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Using ER/Studio.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Module 3: Table Selection
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Database Technical Session By: Prof. Adarsh Patel.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
MySQL. MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multiuser access to a number of databases. A third party.
CS 174: Web Programming September 23 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
1 Databases November 15, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel, and Goldberg. Published.
FEN  Data Definition: CREATE TABLE, ALTER TABLE  Data Manipulation: INSERT, UPDATE, DELETE  Queries: SELECT SQL: Structured Query Language.
Oracle Data Integrator Transformations: Adding More Complexity
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
CS499 Project #3 XML mySQL Test Generation Members Erica Wade Kevin Hardison Sameer Patwa Yi Lu.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
SQL Structured Query Language. Aims  To introduce the implementation of a Physical design using SQL.  To introduce SQL Data Definition Language (DDL).
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Chapter 3: Relational Databases
Level 1-2 Trigger Data Base development Current status and overview Myron Campbell, Alexei Varganov, Stephen Miller University of Michigan August 17, 2000.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
Introduction to MySQL  Working with MySQL and MySQL Workbench.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
3 A Guide to MySQL.
Web Routing Designing an Interface
© 2016, Mike Murach & Associates, Inc.
Introduction to Web programming
Database application MySQL Database and PhpMyAdmin
© 2012, Mike Murach & Associates, Inc.
Accessing Your MySQL Database from the Web with PHP (Ch 11)
Data Management Innovations 2017 High level overview of DB
Database Connectivity and Web Development
Creating and Managing Database Tables
Presentation transcript:

Web Application Development

Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor

Define ER model in QSEE Generate SQL Create Database mysQL Write Script to use TableEditor

QSEE Multi-case diagramming tool –All UML diagrams –++ Entity-Relationship Diagrams –Generates SQL for various targets (including MySQL 4.0) –Implements relationships automatically 1- many : adds primary key on 1-side as columns in the many side to make foreign keys Many-many : adds an new link table with the primary keys from both sides as foreign keys (and a joint primary key) Dependent (weak) entities : foreign key becomes part of the primary key –Sets up the appropriate integrity constraints Action on delete and update for foreign keys

PHPMyAdmin GUI interface to MySQL server (shares) GUI runs on stocks (the PHP server) Full access to a database for –Creating tables –Added data –Browsing the data –Import and Export of tables… –Execute SQL queries (DML) or definitions (DML) But..

Command line MySQL Generated SQL comments are rejected by PHPMyAdmin login to shares directly using putty change directory to your project directory Enter: mysql –p use database source proj.sql

Editing a Table Table editor has to support the functions of: –Browsing the table –Inserting a new row (with validation and defaults) –Deleting a row –Editing a row –Copying (or cloning) an existing row

Common Pattern Could write the script each time by hand Could write a single ‘data-driven’ class –Class must be able to read the table definition from the database (DESCRIBE command) –Class must allow user to control the options offered Some open-source code exists –Here is one by Richard Heyes –

Main script for editor <?php require_once('db.inc'); require_once('TableEditor.php'); $editor = new TableEditor($dblink, 'Book'); $editor->setConfig('allowPKEditing', true); $editor->setConfig('allowASearch', false); $editor->setConfig('perPage', 5); $editor->setConfig('title', 'Edit Books'); $editor->setRequiredFields('ISBN', 'Title'); $editor->display(); ?>

Next weeks workshop Develop a simple table editor using these tools

More on SQL generation