UQC103S1 UFCE47-20-1. Systems Development. uqc103s/ufce47-20-1 PHP-mySQL 1



Similar documents
Application note: Connecting the to a Database

Oracle Database 10g Express

Installation Instructions

FileMaker 12. ODBC and JDBC Guide

StoreGrid Backup Server With MySQL As Backend Database:

INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP

Online shopping store

Project management integrated into Outlook

FileMaker 13. ODBC and JDBC Guide

CTIS 256 Web Technologies II. Week # 1 Serkan GENÇ

ODBC Driver Version 4 Manual

Database Management System Choices. Introduction To Database Systems CSE 373 Spring 2013

Setting Up ALERE with Client/Server Data

Mul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 03 (Nebenfach)

Short notes on webpage programming languages

G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P.

IT3504: Web Development Techniques (Optional)

CPE111 COMPUTER EXPLORATION

E-Commerce: Designing And Creating An Online Store

AJ Matrix V5. Installation Manual

LAMP Quickstart for Red Hat Enterprise Linux 4

Installation of PHP, MariaDB, and Apache

How-To: MySQL as a linked server in MS SQL Server

Lucid Key Server v2 Installation Documentation.

FileMaker 11. ODBC and JDBC Guide

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Lesson 7 - Website Administration

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Installation Instruction STATISTICA Enterprise Small Business

Backup and Restore MySQL Databases

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

MySQL quick start guide

Getting Started with Dynamic Web Sites

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Welcome to Collage (Draft v0.1)

Migrating helpdesk to a new server

SQL Injection. The ability to inject SQL commands into the database engine through an existing application

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus sandhaus@cs.nyu.edu evan@nytimes.com

How to Install SMTPSwith Mailer on Centos Server/VPS

MySQL Quick Start Guide

How To Install Amyshelf On Windows 2000 Or Later

Pemrograman Web. 1. Pengenalan Web Server. M. Udin Harun Al Rasyid, S.Kom, Ph.D

Jet Data Manager 2012 User Guide

ISPConfig Documentation

Guide to the MySQL Workbench Migration Wizard: From Microsoft SQL Server to MySQL

42goISP Documentation

SQL Injection. Blossom Hands-on exercises for computer forensics and security

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Newsletter Sign Up Form to Database Tutorial

Manual POLICY PATROL SECURE FILE TRANSFER

Matisse Installation Guide for MS Windows

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

RSA Security Analytics

CSCI110 Exercise 4: Database - MySQL

Mirtrak 6 Powered by Cyclope

INTRODUCTION TO WEB TECHNOLOGY

Publish Joomla! Article

cubesql ReadMe SQLabs, All rights reserved.

Benchmarking and monitoring tools

Livezilla How to Install on Shared Hosting By: Jon Manning

Matisse Installation Guide for MS Windows. 10th Edition

MySQL Quick Start Guide

FileMaker 14. ODBC and JDBC Guide

TIMETABLE ADMINISTRATOR S MANUAL

Installing buzztouch Self Hosted

Modelling with R and MySQL. - Manual - Gesine Bökenkamp, Frauke Wiese, Clemens Wingenbach

The Whole OS X Web Development System

SECURING APACHE : THE BASICS - III

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Seamless Web Data Entry for SAS Applications D.J. Penix, Pinnacle Solutions, Indianapolis, IN

When choosing where to install and run the log analyzer, be aware that it requires access to the following log files:

FileMaker Server 12. FileMaker Server Help

RTI Database Integration Service. Getting Started Guide

ProjectPier v Getting Started Guide

Build it with Drupal 8

FileMaker Server 13. Getting Started Guide

Quick Start Guide Joomla!: Guidelines for installation and setup. Why Joomla!

Cloud Homework instructions for AWS default instance (Red Hat based)

LAMP Server A Brief Overview

CYCLOPE let s talk productivity

Document management and exchange system supporting education process

Architecting the Future of Big Data

LISTSERV Maestro 6.0 Installation Manual for Solaris. June 8, 2015 L-Soft Sweden AB lsoft.com

Railo Installation on CentOS Linux 6 Best Practices

IT3503 Web Development Techniques (Optional)

POLICY PATROL MFT. Manual

Avatier Identity Management Suite

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

DiskPulse DISK CHANGE MONITOR

Installation Guide for contineo

Building Java Servlets with Oracle JDeveloper

McAfee Network Threat Response (NTR) 4.0

FileMaker Server 12. Custom Web Publishing with PHP

equate Installation QUICK START GUIDE

A Manual on use of ABCD central and VHL-Site modules for Developing Library Information Discovery and Information Literacy Tools

Transcription:

UQC103S1 UFCE47-20-1 Systems Development uqc103s/ufce47-20-1 PHP-mySQL 1

Who? Email: uqc103s1@uwe.ac.uk Web Site www.cems.uwe.ac.uk/~jedawson www.cems.uwe.ac.uk/~jtwebb/uqc103s1/ uqc103s/ufce47-20-1 PHP-mySQL 2

HELP is at HAND uqc103s/ufce47-20-1 PHP-mySQL 3

PHP and mysql A crash course In this lecture we will consider: What is mysql? Why PHP and mysql? How to get and install PHP/mySQL Some SQL Using mysql (command line) Using PHP and mysql uqc103s/ufce47-20-1 PHP-mySQL 4

What is mysql? The World s Most Popular Open Source Database more than 4 million active installations A DBMS - Database Management System Supports a database and allow client/server interactions (storing and retrieving information) On a large system a computer may be solely dedicated to running the DBMS A DBA (DataBase Administrator) usually manages the database Usually a DBMS is very expensive to buy and/or maintain. uqc103s/ufce47-20-1 PHP-mySQL 5

mysql has Speed - written in C/C++, multithreaded,optimised Full data set - supports: float,double, enum, date, char, varchar etc.. Full Command set (SQL92 compliant) select, insert, delete, show, "aliases" etc Functions - e.g. avg(), sum(), max() Security - privilege and password system Scalable - can take billions of rows of data Large character set for internationalisation Tools - admin and other access uqc103s/ufce47-20-1 PHP-mySQL 6

Why PHP and mysql MySQL is a key part of LAMP (Linux, Apache, MySQL, PHP / Perl / Python), a fast growing open source enterprise software stack. More and more companies are using LAMP as an alternative to expensive proprietary software stacks because of its lower cost and freedom from lock-in. http://www.mysql.com/company/index.html uqc103s/ufce47-20-1 PHP-mySQL 7

How to get and install PHP/mySQL MySQL http://www.mysql.com/downloads/index.html But don t forget (mini -XAMPP)!! Apache/mySQL/PHP/Perl - download and install instructions (the "old" method should work OK) http://www.apachefriends.org/xampp-windows-en.html mini-xampp download is about 13 Mb NOTE: In Apache users web pages are in install_dir\htdocs uqc103s/ufce47-20-1 PHP-mySQL 8

Starting Apache and mysql Scripts to start and stop are in the minixampp install directory Starting Apache starts an HTTP service on port 80 (default) http://localhost/ or http://127.0.0.1/ Starting mysql starts a service on port 3066 (default) NOTE: XAMPP contains a good admin tool for mysql http://localhost/phpmyadmin/ Apache (minixampp) users web pages are in: install_dir\htdocs uqc103s/ufce47-20-1 PHP-mySQL 9

Stopping and Starting uqc103s/ufce47-20-1 PHP-mySQL 10

Basic SQL SQL - Structured Query Language "sequel" or "ess-cue-el" We will consider: creating a database creating a table populating a table (inserting data) viewing a table (selecting data and ordering it) changing data (updating data) deleting data uqc103s/ufce47-20-1 PHP-mySQL 11

Using SQL with mysql In the simplest case can use mysql "on the command line" (DOS prompt) the command to use mysql : install_dir\mysql\bin\mysql get a command prompt and change to the bin folder (or add mysql to your path) make sure mysql service has been started type "mysql" on the command line uqc103s/ufce47-20-1 PHP-mySQL 12

Connecting to mysql creating a database and a table uqc103s/ufce47-20-1 PHP-mySQL 13

Populating a table Viewing contents uqc103s/ufce47-20-1 PHP-mySQL 14

More about select uqc103s/ufce47-20-1 PHP-mySQL 15

Changing and Deleting Data uqc103s/ufce47-20-1 PHP-mySQL 16

Using mysql with PHP Example One: connect to mysql select a database define a query execute query present results free resources Program - mysql1.php uqc103s/ufce47-20-1 PHP-mySQL 17

PHP/mySQL - column headings We can add a bit more detail: improved formatting order by in select insert new data adding column names LINK: mysql2.php uqc103s/ufce47-20-1 PHP-mySQL 18

Using PHP with HTML forms The form PHP is commonly used to process HTML forms cf. CGI programs See search1.html uqc103s/ufce47-20-1 PHP-mySQL 19

The PHP Check input is OK connect to database run query check output process as before See: form1.php uqc103s/ufce47-20-1 PHP-mySQL 20

Some Helpful URLs mysql - reference and tutorial http://www.mysql.com/doc/en/introduction.htmlphp/mysql tutorial http://www.mysql.com/doc/en/tutorial.html PHP/mySQL tutorial http://hotwired.lycos.com/webmonkey/99/21/index2a.html?t w=programming Learn SQL http://www.w3schools.com/sql/default.asp PHP to MS Access (ODBC) example http://www.w3schools.com/php/php_db_odbc.asp uqc103s/ufce47-20-1 PHP-mySQL 21