GUI To Create a DB Table CS346 Fall 2010 1. Methods to create a table At your local server and/or remote server – Use MySQL Console and create it interactively.

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

User Authentication with DB Cs346 Fall Requirements Web site is for registered users only – Username and password – Password is encripted.
PHP and MySQL Database. Connecting to MySQL Note: you need to make sure that you have MySQL software properly installed on your computer before you attempt.
Murach's PHP and MySQL, C4© 2010, Mike Murach & Associates, Inc.Slide 1.
The Collections Keeper A collections management system Brian J. Mullen.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
Multiple Tiers in Action
Crawler-Based Search Engine By Ryan Caplet, Morris Wright and Bryan Chapman.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Sara SartoliAkbar Siami Namin NSF-SFS workshop July 14-18, 2014.
Ft. Kent Weather Database Student: David Southern Instructor: Tony Gauvin 27 April 2009.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
XML & RDBMS By Molly Gumpert for: LIS 469: XML Fall 2014 Professor Gerry Benoit.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
CS450 HW2Page 1 Homework #2  Due the midnight of April 15th.  100 Points  In this homework, you create an SQL script to build the MOVIES database according.
Week Four CIT 354 Internet II. 2 Objectives Uploading Files to Your Web Site Establishing a Connection Creating a Database Table Common Programming Errors.
PHP meets MySQL.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
Ways to manage DB in MySQL cs346. Six ways to CREATE and INSERT INTO tables Modelocalremotelocalremotewindow WhereMysql console Putty; Mysql console Mysql.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
1 LCH.Clearnet – Sysgem AG Automated Production Manager Requests Discussion, 24 Aug 2011 WebEx Conference.
Internet Information Systems Writing to Databases and Amending Data.
Creating PHPs to Insert, Update, and Delete Data CS 320.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.
1 MySQL Using Databases with PHP or Perl Scripts:.
Security Considerations Steve Perry
INTRODUCTORY GUIDE TO SURPLUS LINE INFORMATION PORTAL 2.0 (SLIP) CALIFORNIA’S ELECTRONIC FILING SYSTEM THE SURPLUS LINE ASSOCIATION OF CALIFORNIA SLIP.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Windows 7 WampServer 2.1 MySQL PHP 5.3 Script Apache Server User Record or Select Media Upload to Internet Return URL Forward URL Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Display Page (HTML/CSS)
+ Back to html / php / sql. + HTML Hello World Page Title Hello World!!
Database to HTML and Back again A programmers tale.
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
MySQL Getting Started BCIS 3680 Enterprise Programming.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CS 3630 Database Design and Implementation
Web Design and Development
Data File Import / Export
CS1222 Using Relational Databases and SQL
ORACLE SQL Developer & SQLPLUS Statements
ISC440: Web Programming 2 Server-side Scripting PHP 3
CS1222 Using Relational Databases and SQL
PHP and MySQL.
CS122 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
MySQL Database System Installation Overview SQL summary
CS1222 Using Relational Databases and SQL
CS122 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
Presentation transcript:

GUI To Create a DB Table CS346 Fall

Methods to create a table At your local server and/or remote server – Use MySQL Console and create it interactively – Use a batch SQL script Use HTML and PHP scripts with goals: – Let user interactively define the fields – Identical development environment on local and remote servers 2

Establish an identical environment Create a user on local server with the same and as your own on remote server (cs346) Create a database called See create_user_student.txt 3

Your Music collection Suppose you want to create a database table my_music with 8 attributes (columns) id format title fname of artist lname of artist rec_label my_notes date_acq 4

Interaction of 3 scripts 12-1show_createtable.html to prompt for – Name of table – Number of attributes (columns) – Then call 12-1show_fielddef.php 12-1do_show_fielddef.php – Display a form for user to specify field names, types, and length 12-1do_createtable.php – Do the actual create table 5

6 Before running the scripts, list the tables in the database student by running See the following slide

7

8

9

10 Check if the table my_music has been really created in the database student by running Hmm! The message is not quite correct. Intention is to show that the table is being added to the database ‘student’. Correction: remove the quotes around “DB_NAME”. But at this point, I need to drop the table and create it again. Let us fix the script, upload it to cs346 latgerand test again.

11

12 Upload the m12 directory by Fillzilla to /var/www/students/student Then check the tables in the user student

13

14 Note we are now in the student account in cs346 server

15

16 Note: The message is corrected to show that the table is being added to the database ‘student’. My correction: remove the quotes around “DB_NAME”

17

18