DEV Training Sahana Developer Training. DEV Training PHP.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
The Watson Game Database Group Members: Joshua Shapiro - Team leader Dan Dauchy - MySQL table creation scripts Andy Modansky - MySQL data transfer script.
ADVM420- Class #4 Web Design with PHP and MySQL Adding and Listing from a MySQL Database.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Introduction to Web Programming SCSC Mentoring Special Class Made Harta Dwijaksara –
PHP on a Fast Track a quick introduction to PHP programming by Jarek Francik.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
1 CS428 Web Engineering Lecture 23 MySQL Basics (PHP - VI)
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
PHP Programming. Topics Background and History of PHP Installation Comments in PHP Variables Conditions Loops Functions File Handling Database Handling.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
Programming with php By: Seth Larson. A little bit about PHP  PHP stands for PHP:  Hypertext Preprocessor  PHP is a widely-used general-purpose server-side.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 Chapter 8 – Working with Databases spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science and Technology.
Slide 8-1 CHAPTER 8 Using Databases with PHP Scripts: Using MySQL Database with PHP.
INTERNET APPLICATION DEVELOPMENT For More visit:
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
Nic Shulver, Retrieving Stored Data Introduction This set of slides shows: The information source database structure The data.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT PRACTICAL ON CONNECTING TO MYSQL.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
What is PHP? PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general- purpose scripting language that is especially.
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.
PHP MySQL. SQL: Tables CREATE TABLE tablename { fieldname type(length) extra info,... } Extra info: –NULL (allows nulls in this field) –Not NULL (null.
Advanced PHP: Using PHP with MySQL C. Daniel Chase The University of Tennessee at Chattanooga.
MySQL PHP Web Technology. Logging in to Command Line Start -> Programs -> AppServ -> MySQL Command Line Client Enter Password, then you’ll be working.
Database and mySQL Week 07 Dynamic Web TCNJ Jean Chu.
Lecture 10 – MYSQL and PHP (Part 2)
Overview: 1. Discussion of the basic architecture of a web application. 2. Discussion of the relevance of using MySQL and PHP in a web application.
PHP MySQL Image Gallery. The admin section contain the following : Add New Album Album List Edit & Delete Album Add Image Image List Edit & Delete Image.
Introduction to Web Programming. Introduction to PHP What is PHP? What is a PHP File? What is MySQL? Why PHP? Where to Start?
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
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 “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
XML Extensible Markup Language. Introduction to XML Text based format As JSON it’s mainly intended for data interchange (transport & store) Also widely.
Database MySQL Universitas Muhammadiyah Surakarta Yogiek Indra Kurniawan.
PHP Introduction PHP is a server-side scripting language.
CHAPTER 10 PHP MySQL Database
MySQL MySQL and PHP – interacting with a database.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 8 – Review Reference:
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
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.
PHP using MySQL Database for Web Development (part II)
Setup a PHP + MySQL Development Environment
Introduction to Dynamic Web Programming
Unix System Administration
CSC 301 Web Programming Charles Frank.
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
Web Design and Development
PHP / MySQL Introduction
BASIC PHP and MYSQL Edward S. Flores.
PHP Introduction.
PHP: Combo box FdSc Module 109 Server side scripting and
Tutorial 6 PHP & MySQL Li Xu
Web Programming– UFCFB Lecture
Introduction to PHP.
Introduction to Web programming
Conection
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Presentation transcript:

DEV Training Sahana Developer Training

DEV Training PHP

DEV Training PHP-Overview PHP Hypertext Preprocessor Is a Scripting language for web development Is Platform independent Windows, Linux, Mac... Web browser Version PHP 5,6 Is an Interpreted language

DEV Training PHP-Setup Windows WAMP,XAMPP Linux Apache module Apt-get install php5 Mac?

DEV Training PHP-Writing Code Write code in some text editor or dev environment Store files with.php extension example_file.php Store PHP file web server root folder

DEV Training PHP-Check <?php phpinfo(); ?>

DEV Training PHP-Hello Alpha Centauri <?php echo “Hello Alpha Centauri”; ?> Hello Alpha Centauri

DEV Training PHP-Embedding PHP

DEV Training Variables/Expressions <?php $var = 1; $var2 = “this_is_a_string”; $var3 = 1.32; $var4 = $var + 1; ?>

DEV Training Arrays <?php $foo[1] = 1; $foo[2] = 2; $bar[1][2] = 3; ?>

DEV Training Functions <?php phpinfo(); foo(); $len = strlen($foo); ?>

DEV Training Control Structures <?php while($foo>1) {... } if($test==true){.... } ?>

DEV Training Output <?php echo $foo; printf(".2f",$price); ?>

DEV Training Object Orientation <?php class Cart { var $items; function add_item($artnr, $num) { $this->items[$artnr] += $num; } ?>

DEV Training MySQL

DEV Training F/OSS Database server Simple Relational Database Works well with PHP

DEV Training MySQL::SQL Command line Windows: Run->cmd->... Linux: Terminal/Shell mysql -u -p mysql -u root -p sahana_db GUI PHPMyadmin MySQLCC MySQLAdmin

DEV Training Server - localhost Database - test Table -... Username - root Password - ?

DEV Training <?php $conn = mysql_connect('localhost'); echo $conn; ?> <?php $conn = mysql_pconnect('localhost'); echo $conn; ?>

DEV Training SQL Structured Query Language INSERT INSERT INTO (col1,col2) VALUES (val1,val2); SELECT SELECT * FROM ; SELECT name,address FROM people_table WHERE location='Manilla';

DEV Training <?php // Make a MySQL Connection mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); // Create a MySQL table in the selected database mysql_query("CREATE TABLE example( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name VARCHAR(30), age INT)") or die(mysql_error()); echo "Table Created!"; ?>

DEV Training <?php mysql_pconnect("db.server.com","username","password"); mysql_select_db("products"); $result = mysql_query("SELECT * FROM details"); if ($result) { echo " \n"; echo " Name Description \n"; while ($a = mysql_fetch_array($result)) { echo " $a[name] ", " $a[descr] "; } echo " "; } else { echo " Nothing to see here."; } ?>