10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing Easy PHP F Available from -

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

PHP and MySQL PHP for the Web, page PHP and MySQL MySQL Resource PHP – MySQL Resource
TYPO3 Content Management System College of Natural & Social Sciences Webpage TYPO3 Content Management System College of Natural & Social Sciences Webpage.
JOIN A COMMUNITY OF 80,000 E-COMMERCE SITES WORLDWIDE.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Open Source Content Management System - JOOMLA Swapnil S. Chafale Nagpur (M.S.) India Paper-Presentation For ATCON-2009 Conference.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
PHP on a Fast Track a quick introduction to PHP programming by Jarek Francik.
1 CS428 Web Engineering Lecture 23 MySQL Basics (PHP - VI)
1 Open Source Programming. -Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings.
Open Source Software WampServer Presented By Mr. R.Aravindhan.
Hosting Packages, FTP, and other Hacks 14 February 2012.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
PHP : Working with Resultsets. Last class  Open a connection to the MySQL server.  Specify the database  Issue queries (no updates at this stage) 
What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a collections of related data entries and.
© Yanbu University College YANBU UNIVERSITY COLLEGE Management Science Department © Yanbu University College Module 6:WEB SERVER AND SERVER SIDE SCRPTING,
Advanced Web 2012 Lecture 4 Sean Costain PHP Sean Costain 2012 What is PHP? PHP is a widely-used general-purpose scripting language that is especially.
Staying Safe. Files can be added to a computer by:- when users are copying files from a USB stick or CD/DVD - downloading files from the Internet - opening.
Internet and Web Application Development Revision.
INTERNET APPLICATION DEVELOPMENT For More visit:
PHP MySQL Introduction
Nic Shulver, Retrieving Stored Data Introduction This set of slides shows: The information source database structure The data.
Nic Shulver, Retrieving Stored Data Introduction This set of slides shows: The information source database structure The data.
INTERNET APPLICATION DEVELOPMENT PRACTICAL ON CONNECTING TO MYSQL.
 Mysql – popular open-source database management system  PHP usually works with Mysql for web- based database applications  LAMP applications—Web-based.
LOGO 2 nd Project Design for Library Programs Supervised By Dr: Mohammed Mikii.
Introduction to MySQL Lab no. 10 Advance Database Management System.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
Advanced PHP: Using PHP with MySQL C. Daniel Chase The University of Tennessee at Chattanooga.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Polling System Part 1 Creating PHP & MySQL Files CIS 254.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
INTERNET APPLICATION DEVELOPMENT Practical on Sessions.
MySQL Database Connection
Database Concepts CPTE 212 3/19/2015 John Beckett.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Login to a Database (from a Webpage), Inserting data into a database from a form, getting data from database and display on Webpage Done by: Mashail Alsolamy.
Enterprise PHP – Reading Data from a DB Reading Data from a relational database in PHP Nic Shulver, FCES, Staffordshire University Using the SQLi interface.
PHP on a Fast Track a quick introduction to PHP programming by Jarek Francik last time updated in 2012.
PHP and Mysql Database. PHP and Database Mysql – popular open-source database management system PHP usually works with Mysql for web-based database applications.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
An easy to use web-based tool for tracking members and jobs.
MySQL. Is a SQL (Structured Query Language) database server. Can be accessed using PHP with embedded SQL Queries Supports Large DB’s, 60,000 tables with.
Accessing mySQL relational database. MySQL database.  Today, we will attempt and open a connection to the MySQL server.  We need to specify the database.
 Connectivity Function :-  mysql_connect ()  mysql_select_db ()  mysql_query ()  mysql_nam_rows ()  mysql_fetch_row ()  mysql_affected_rows () 
Database MySQL Universitas Muhammadiyah Surakarta Yogiek Indra Kurniawan.
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
Setting up Dreamweaver to use your local WAMP testing Server
Introduction to PHP Brendan Knight. What is PHP PHP is a general-purpose scripting language originally designed for web development to produce dynamic.
CSC 405: Web Application Engineering II8.1 Web programming using PHP What have we learnt? What have we learnt? Underlying technologies of database supported.
MySQL MySQL and PHP – interacting with a database.
Nic Shulver, Storing Data on the Server Introduction We are going to look at some working code It writes fixed data into a simple.
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
PHP MySQL1 PHP and MySQL After this lecture, you should be able to:  Access a MySQL database with PHP  mysql_connect()  mysql_select_db()  mysql_query()
Setting up a Development Environment. What you need Webserver (Apache) Database (MySQL) PHP All in Uniserver (google “uniserver”) Download the windows.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 8 – Review Reference:
Wordpress. What is Wordpress? Wordpress is a content management system. It is free and easy to use. It allows you to build dynamic websites It is built.
Nic Shulver, Storing Data on the Server Introduction We are going to look at some working code It writes fixed data into a simple.
DEV Training Sahana Developer Training. DEV Training PHP.
sTGC production database design
Tried my best to simplify it for you!
Introduction to PHP FdSc Module 109 Server side scripting and
Web Design and Development
Building A Web-based University Archive
PHP / MySQL Introduction
Website Development Basics with PHP MySQL
Advanced Internet Development Dynamic Web pages with php and MySQL
PHP Overview PHP: Hypertext Preprocessor Server-Side Scripting
MySQL Backup, Transfer and Restore
Tutorial 6 PHP & MySQL Li Xu
Presentation transcript:

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing Easy PHP F Available from - F Local service on your machine F Works from a data stick. F It provides –An apache web server (already functioning) –MYSQL server (already functioning) –PHP language development environment F Can be added to by ‘Modules’ eg –Content Management System – wordpress –Prestashop – e-commerce site –PHPMyAdmin – MySQl admin system

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing EsyPHP Admin Menu

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing MySQL Admin System

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing Code to Access MS ACCESS database <?php $adoCon = new COM("ADODB.Connection"); $sHere = dirname(__FILE__); Try { $adoCon->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$sHere/uidb2.mdb");} catch(Exception $e) { die('Sorry - Problem opening the database. ');} Code to do things goes in here $rsMain->Close(); $rsMain = null; $adoCon->Close(); $adoCon = null; ?>

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing Code to access MYSQL file <?PHP //try to connect to the database $con = mysql_connect(" ", "test", "pass") or die("Failed to connect to DB, ". mysql_error() ); $tiggerDB = mysql_select_db('modulemanager', $con) or die('Could not find database -die.'); //Insert staff details into staff table try {$tiggerDB =mysql_query("INSERT INTO STAff (Username,Forename,Surname,Password,TelNo,Room) VALUES ('$Username','$Forename','$Surname','$Password','$Telno','$Room')"); } catch(Exception $e) {echo 'Sorry - details not enetered onto database ';} mysql_close($con); header("Location: StaffList.php"); ?>

10/09/2015 E.R.Edwards 10/09/2015 Staffordshire University School of Computing Files in..\www\SES F Class lists used by lectures –ClassListForm.htm fires ClassList.php –StudentTimetable.htm fires StudentTimetable.php F Possible Improvements (if you are mad!) –Student online registration form? –Web based group list modification system.