PHP and mySQL 2/9/2007. What is PHP?  From php.net “PHP is a widely-used general- purpose scripting language that is especially suited for Web development.

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

Alexander Carrington and Liam Martell. Introduction Client: Tom Goldsworthy – G-Group Security Project: Electronic Incident Reporting System Online access.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
HippoCampus A Free Educational Resource for Teachers.
1 Web Site Design Overview of the Internet Cookie Setton.
Installing Instant WordPress 1)Download Instant WordPress from the following location:- 2) Double Click on the downloaded.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
CIS101 Introduction to Computing
VCT May 20, 2009 Sapna Blesson Advisor: Dr.Christopher Pollett.
Compe 341 Oracle Installation Procedure. Oracle From Click.
Discovering SQL all rights reserved (c) 2010 agilitator.com INSTALLING MySQL 5.1 Community Server.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Sahil Narang What is CMS? A content management system (CMS) is a computer application that allows publishing, editing and modifying content,
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Agenda What is Computer Programming? The Programming Process
Creating a Web Presence Introduction to WordPress Week 1.
What is Web Authoring? Web Authoring Tools Use Text Editors HTML Editors Web-based Authoring Tools Integrated Web Authoring Tools 8Basic Understanding.
Powerpoint Templates Page 1 Powerpoint Templates Web Programming PHP MySql Ikbal Jamaludin.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
Adobe Dreamweaver CS5 Introduction Web Site Development and Adobe Dreamweaver CS5.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
PHP Professor Waterman. Agenda What is PHP Versions HTML Dynamic Web sites Interactive Web Sites Installing PHP Transfer pages to a Web hosting service.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
What is PHP? PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general- purpose scripting language that is especially.
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
PHP and MySQL by Example COMP YL Professor Mattos.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Ways to manage DB in MySQL cs346. Six ways to CREATE and INSERT INTO tables Modelocalremotelocalremotewindow WhereMysql console Putty; Mysql console Mysql.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
RUBRIC IP1 Ruben Botero Web Design III. The different approaches to accessing data in a database through client-side scripting languages. – On the client.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
FrontPage 2000 For Online Classes June 29, 2000 Distance Learning Conference.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
CitiWiki Summer Workshop Day 4: Wiki Teaching Project Li Xu CS, UMass Lowell.
 To start using PHP, you can:  Find a web host with PHP and MySQL support  Install a web server on your own PC, and then install PHP and MySQL.
Databases Kevin Wright Ben Bruckner Group 40. Outline Background Vulnerabilities Log File Cleaning This Lab.
PS-1 project Designing an E-commerce page for HMT BEARINGS LTD and SEO of the website.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
CMPE 226 Database Systems April 19 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
The New NAP Members’ Area Development. Elgg What is elgg? –Elgg is an award-winning open source social networking platform.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Fundamental of Databases
Web location for this presentation:
3.02H Publishing a Website 3.02 Develop webpages..
PHP / MySQL Introduction
BASIC PHP and MYSQL Edward S. Flores.
Database Driven Websites
Chapter 8 Working with Databases and MySQL
Title: Tech Training Certificate: Ace of Initiative Program
SiteBuilder 2 Introduction.
4.02 Develop web pages using various layouts and technologies.
INFS 230 L Internet Technology
Ch 1 .Installing and configuring SQL Server 2005
Web Application Development Using PHP
Presentation transcript:

PHP and mySQL 2/9/2007

What is PHP?  From php.net “PHP is a widely-used general- purpose scripting language that is especially suited for Web development and can be embedded into HTML”  From IBM “PHP is the market-leading dynamic language for producing modern Web applications.”  Usage Usage  Random link Random link  On-line documentation -  From php.net “PHP is a widely-used general- purpose scripting language that is especially suited for Web development and can be embedded into HTML”  From IBM “PHP is the market-leading dynamic language for producing modern Web applications.”  Usage Usage  Random link Random link  On-line documentation -

What is mySQL?  From “the MySQL® database has become the world's most popular open source database because of its consistent fast performance, high reliability and ease of use. It's used in more than 10 million installations ranging from large corporations to specialized embedded applications on every continent in the world.”  Top 10 Reasons for mySQL Top 10 Reasons for mySQL  Random Link Random Link  Fastest growing fields Fastest growing fields  From “the MySQL® database has become the world's most popular open source database because of its consistent fast performance, high reliability and ease of use. It's used in more than 10 million installations ranging from large corporations to specialized embedded applications on every continent in the world.”  Top 10 Reasons for mySQL Top 10 Reasons for mySQL  Random Link Random Link  Fastest growing fields Fastest growing fields

Communication between PHP and a mySQL Database  

The Server  mmas.unca.edu  Login: your account name  Password: “mmas” + the first 4 of the last 5 digits of your university id number.  Example: if my id = , my password will be mmas6789  mmas.unca.edu  Login: your account name  Password: “mmas” + the first 4 of the last 5 digits of your university id number.  Example: if my id = , my password will be mmas6789

Accessing mySQL and PHP  If you execute which php and which mysql you will see antiquated versions. We want to use current versions which are installed at /usr/local/…  Change your PATH in your.profile in your home directory  If you execute which php and which mysql you will see antiquated versions. We want to use current versions which are installed at /usr/local/…  Change your PATH in your.profile in your home directory

Set up access on the database  From the mySQL command line:  grant select on nallbbco_bonsaidb.* to identified by 'bonsai' ;  From the mySQL command line:  grant select on nallbbco_bonsaidb.* to identified by 'bonsai' ;

Accessing the Database from the Command Line multimedia:~ reiser$ mysql -u rfidclass -pbonsai Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 to server version: standard-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> multimedia:~ reiser$ mysql -u rfidclass -pbonsai Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 to server version: standard-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>

mysql> use nallbbco_bonsaidb Database changed mysql> show tables; | Tables_in_nallbbco_bonsaidb | | biology | | grouping | | grp_audio | | grp_image | | grp_video | | grpbio | | link | | news | | pos | | shelf | rows in set (0.00 sec) mysql> use nallbbco_bonsaidb Database changed mysql> show tables; | Tables_in_nallbbco_bonsaidb | | biology | | grouping | | grp_audio | | grp_image | | grp_video | | grpbio | | link | | news | | pos | | shelf | rows in set (0.00 sec)

Using Dreamweaver with PHP and mySQL  Dreamweaver is Adobe’s web authoring software and it has fairly good support for php and mySQL.  You can download a trial version of Dreamweaver for 1 month’s free use.  You may use Dreamweaver in either of the MMAS labs - RBH 223 and KH 245  Those stations are not secure.  Do not leave your files on the desktop - if you work locally, copy the site folder to the server and delete it before leaving the lab.  Logout of the server before leaving the computer.  Close the door behnd you when you leave the lab.  Dreamweaver is Adobe’s web authoring software and it has fairly good support for php and mySQL.  You can download a trial version of Dreamweaver for 1 month’s free use.  You may use Dreamweaver in either of the MMAS labs - RBH 223 and KH 245  Those stations are not secure.  Do not leave your files on the desktop - if you work locally, copy the site folder to the server and delete it before leaving the lab.  Logout of the server before leaving the computer.  Close the door behnd you when you leave the lab.

Features in Dreamweaver  Built in validation.  Point and click interface.  Ability to view the code in the Code window; and edit the code for optimization, tweaking and customization.  Instant gratification of previewing in the Design window.  Built in validation.  Point and click interface.  Ability to view the code in the Code window; and edit the code for optimization, tweaking and customization.  Instant gratification of previewing in the Design window.