Introduction to Dynamic Web Programming with PHP & MySQL

3,410 views
3,246 views

Published on

This is an introduction to Dynamic Web Programming with PHP & MySQL Database. This presentation is from a Creaver-Day event at CreaveLabs IT Solutions.

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,410
On SlideShare
0
From Embeds
0
Number of Embeds
37
Actions
Shares
0
Downloads
0
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Introduction to Dynamic Web Programming with PHP & MySQL

  1. 1. Introduction to Dynamic Programming with PHP By – Jose Philip Raja (Creative Director of CreaveLabs IT Solutions)
  2. 2. Please..  Take Notes..  Ask Doubts..  Contribute your Knowledge..  Practice Privately.. © Introduction to PHP by Jose Philip Raja
  3. 3. What is PHP?  PHP stands for PHP: Hypertext Preprocessor (recursive acronym)  PHP is a widely-used, open source scripting language  PHP scripts are executed on the server  PHP is free to download and use © Introduction to PHP by Jose Philip Raja
  4. 4. What is a PHP File?  PHP files can contain text, HTML, JavaScript code, and PHP code  PHP code are executed on the server, and the result is returned to the browser as plain HTML  PHP files have a default file extension of ".php" © Introduction to PHP by Jose Philip Raja
  5. 5. What Can PHP Do?  PHP can generate dynamic page content  PHP can create, open, read, write, and close files on the server  PHP can collect form data  PHP can send and receive cookies  PHP can add, delete, modify data in your database  PHP can restrict users to access some pages on your website  PHP can encrypt data © Introduction to PHP by Jose Philip Raja
  6. 6. Why PHP?  PHP runs on different platforms (Windows, Linux, Unix, Mac OS X, etc.)  PHP is compatible with almost all servers used today (Apache, IIS, etc.)  PHP has support for a wide range of databases  PHP is free. Download it from the official PHP resource: www.php.net  PHP is easy to learn and runs efficiently on the server side © Introduction to PHP by Jose Philip Raja
  7. 7. PHP BASICS Lets dive in!! © Introduction to PHP by Jose Philip Raja
  8. 8. PHP Basics  Syntax  Variables  String  Operators  If…Else  Switch  Arrays  While Loops  For Loops  Foreach  Functions  Classes  $_GET  $_POST  $_REQUEST  $_FILES  $_SERVER  $_SESSION © Introduction to PHP by Jose Philip Raja
  9. 9. PHP ADVANCED Learn More!! © Introduction to PHP by Jose Philip Raja
  10. 10. PHP Advanced  Multi – Array  Date  Include  File Upload  Cookies  Sessions  E-mail  Error Handling © Introduction to PHP by Jose Philip Raja
  11. 11. INTRODUCTION TO MYSQL Okay, lets progress to: © Introduction to PHP by Jose Philip Raja
  12. 12. What is MySQL?  MySQL is a database server  MySQL is ideal for both small and large applications  MySQL supports standard SQL  MySQL is free to download and use  PHP combined with MySQL are cross- platform  The data in MySQL is stored in database objects called tables. © Introduction to PHP by Jose Philip Raja
  13. 13. MySQL Connection <?php $con = mysql_connect("localhost","peter","abc"); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code mysql_close($con); ?> © Introduction to PHP by Jose Philip Raja
  14. 14. MySQL Queries  Insert  Select  Where  Order By  Update  Delete © Introduction to PHP by Jose Philip Raja
  15. 15. CONTACT MODULE A simple PHP App: © Introduction to PHP by Jose Philip Raja
  16. 16. THANK YOU! That’s it…. © Introduction to PHP by Jose Philip Raja

×