SlideShare une entreprise Scribd logo
1  sur  41
Welcome to vibrantWelcome to vibrant
technologies andtechnologies and
computerscomputers
Vibrant Technology & Computers
Vashi,Navi Mumbai 1
Vibrant Technology & Computers
Vashi,Navi Mumbai 2
Content :
1. what is php?
2. what php code look like?
3.varibles
4.variable usage
5.echo
6.arithmetics
7.concetenation
8.escaping the character
9.destory php-sessions
10.php overview
11.if..else
12.while loops
Vibrant Technology & Computers
Vashi,Navi Mumbai 3
Goal of this tutorialGoal of this tutorial
 Not to teach everything about PHP, but
provide the basic knowledge
 Explain code of examples
 Provide some useful references
Vibrant Technology & Computers
Vashi,Navi Mumbai 4
 PHP == ‘Hypertext Preprocessor’
 Open-source, server-side scripting language
 Used to generate dynamic web-pages
 PHP scripts reside between reserved PHP tags
 This allows the programmer to embed PHP
scripts within HTML pages
What is PHP?What is PHP?
Vibrant Technology & Computers
Vashi,Navi Mumbai 5
What is PHP (cont’d)What is PHP (cont’d)
 Interpreted language, scripts are parsed at run-
time rather than compiled beforehand
 Executed on the server-side
 Source-code not visible by client
 ‘View Source’ in browsers does not display the PHP
code
 Various built-in functions allow for fast
development
 Compatible with many popular databases
Vibrant Technology & Computers
Vashi,Navi Mumbai 6
What does PHP code look like?What does PHP code look like?
 Structurally similar to C/C++
 Supports procedural and object-oriented
paradigm (to some degree)
 All PHP statements end with a semi-colon
 Each PHP script must be enclosed in the
reserved PHP tag
<?php
…
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 7
Comments in PHPComments in PHP
 Standard C, C++, and shell comment
symbols
// C++ and Java-style comment
# Shell-style comments
/* C-style comments
These can span multiple lines */
Vibrant Technology & Computers
Vashi,Navi Mumbai 8
Variables in PHPVariables in PHP
 PHP variables must begin with a “$” sign
 Case-sensitive ($Foo != $foo != $fOo)
 Global and locally-scoped variables
 Global variables can be used anywhere
 Local variables restricted to a function or class
 Certain variable names reserved by PHP
 Form variables ($_POST, $_GET)
 Server variables ($_SERVER)
 Etc.
Vibrant Technology & Computers
Vashi,Navi Mumbai 9
Variable usageVariable usage
<?php
$foo = 25; // Numerical variable
$bar = “Hello”; // String variable
$foo = ($foo * 7); // Multiplies foo by 7
$bar = ($bar * 7); // Invalid expression
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 10
EchoEcho
 The PHP command ‘echo’ is used to
output the parameters passed to it
 The typical usage for this is to send data to the
client’s web-browser
 Syntax
 void echo (string arg1 [, string argn...])
 In practice, arguments are not passed in
parentheses since echo is a language
construct rather than an actual function
Vibrant Technology & Computers
Vashi,Navi Mumbai 11
Echo exampleEcho example
 Notice how echo ‘5x5=$foo’ outputs $foo rather than replacing it with 25
 Strings in single quotes (‘ ’) are not interpreted or evaluated by PHP
 This is true for both variables and character escape-sequences (such as “n”
or “”)
<?php
$foo = 25; // Numerical variable
$bar = “Hello”; // String variable
echo $bar; // Outputs Hello
echo $foo,$bar; // Outputs 25Hello
echo “5x5=”,$foo; // Outputs 5x5=25
echo “5x5=$foo”; // Outputs 5x5=25
echo ‘5x5=$foo’; // Outputs 5x5=$foo
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 12
Arithmetic OperationsArithmetic Operations
 $a - $b // subtraction
 $a * $b // multiplication
 $a / $b // division
 $a += 5 // $a = $a+5 Also works for *= and /=
<?php
$a=15;
$b=30;
$total=$a+$b;
Print $total;
Print “<p><h1>$total</h1>”;
// total is 45
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 13
ConcatenationConcatenation
 Use a period to join strings into one.
<?php
$string1=“Hello”;
$string2=“PHP”;
$string3=$string1 . “ ” .
$string2;
Print $string3;
?>
Hello PHP
Vibrant Technology & Computers
Vashi,Navi Mumbai 14
Escaping the CharacterEscaping the Character
 If the string has a set of double quotation
marks that must remain visible, use the 
[backslash] before the quotation marks to
ignore and display them.
<?php
$heading=“”Computer Science””;
Print $heading;
?>
“Computer Science”
Vibrant Technology & Computers
Vashi,Navi Mumbai 15
PHP Control StructuresPHP Control Structures
 Control Structures: Are the structures within a language that allow
us to control the flow of execution through a program or script.
 Grouped into conditional (branching) structures (e.g. if/else) and
repetition structures (e.g. while loops).
 Example if/else if/else statement:
if ($foo == 0) {
echo ‘The variable foo is equal to 0’;
}
else if (($foo > 0) && ($foo <= 5)) {
echo ‘The variable foo is between 1 and 5’;
}
else {
echo ‘The variable foo is equal to ‘.$foo;
}
Vibrant Technology & Computers
Vashi,Navi Mumbai 16
If ... Else...If ... Else...
 If (condition)
{
Statements;
}
Else
{
Statement;
}
<?php
If($user==“John”)
{
Print “Hello John.”;
}
Else
{
Print “You are not John.”;
}
?>
No THEN in PHP
Vibrant Technology & Computers
Vashi,Navi Mumbai 17
While LoopsWhile Loops
 While (condition)
{
Statements;
}
<?php
$count=0;
While($count<3)
{
Print “hello PHP. ”;
$count += 1;
// $count = $count + 1;
// or
// $count++;
?>
hello PHP. hello PHP. hello PHP.
Vibrant Technology & Computers
Vashi,Navi Mumbai 18
Date DisplayDate Display
$datedisplay=date(“yyyy/m/d”);
Print $datedisplay;
# If the date is April 1st
, 2009
# It would display as 2009/4/1
2009/4/1
$datedisplay=date(“l, F m, Y”);
Print $datedisplay;
# If the date is April 1st
, 2009
# Wednesday, April 1, 2009
Wednesday, April 1, 2009
Vibrant Technology & Computers
Vashi,Navi Mumbai 19
Month, Day & Date Format SymbolsMonth, Day & Date Format Symbols
M Jan
F January
m 01
n 1
Day of Month d 01
Day of Month J 1
Day of Week l Monday
Day of Week D Mon
Vibrant Technology & Computers
Vashi,Navi Mumbai 20
FunctionsFunctions
 Functions MUST be defined before then can be
called
 Function headers are of the format
 Note that no return type is specified
 Unlike variables, function names are not case
sensitive (foo(…) == Foo(…) == FoO(…))
function functionName($arg_1, $arg_2, …, $arg_n)
Vibrant Technology & Computers
Vashi,Navi Mumbai 21
Functions exampleFunctions example
<?php
// This is a function
function foo($arg_1, $arg_2)
{
$arg_2 = $arg_1 * $arg_2;
return $arg_2;
}
$result_1 = foo(12, 3); // Store the function
echo $result_1; // Outputs 36
echo foo(12, 3); // Outputs 36
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 22
Include FilesInclude Files
Include “opendb.php”;
Include “closedb.php”;
This inserts files; the code in files will be inserted into current code.
This will provide useful and protective means once you connect to a
database, as well as for other repeated functions.
Include (“footer.php”);
The file footer.php might look like:
<hr SIZE=11 NOSHADE WIDTH=“100%”>
<i>Copyright © 2008-2010 KSU </i></font><br>
<i>ALL RIGHTS RESERVED</i></font><br>
<i>URL: http://www.kent.edu</i></font><br>
Vibrant Technology & Computers
Vashi,Navi Mumbai 23
PHP - FormsPHP - Forms
•Access to the HTTP POST and GET data is simple in PHPAccess to the HTTP POST and GET data is simple in PHP
•The global variables $_POST[] and $_GET[] contain theThe global variables $_POST[] and $_GET[] contain the
request datarequest data
<?php
if ($_POST["submit"])
echo "<h2>You clicked Submit!</h2>";
else if ($_POST["cancel"])
echo "<h2>You clicked Cancel!</h2>";
?>
<form action="form.php" method="post">
<input type="submit" name="submit" value="Submit">
<input type="submit" name="cancel" value="Cancel">
</form>
Vibrant Technology & Computers
Vashi,Navi Mumbai 24
WHY PHP – Sessions ?WHY PHP – Sessions ?Whenever you want to create aWhenever you want to create a websitewebsite that allows you to store and displaythat allows you to store and display
information about a user, determine which user groups a person belongs to,information about a user, determine which user groups a person belongs to,
utilize permissions on yourutilize permissions on your websitewebsite or you just want to do something cool onor you just want to do something cool on
your site,your site, PHP's SessionsPHP's Sessions are vital toare vital to eacheach of these features.of these features.
Cookies are about 30% unreliable right now and it's getting worse every day.Cookies are about 30% unreliable right now and it's getting worse every day.
More and more web browsers are starting to come with security and privacyMore and more web browsers are starting to come with security and privacy
settings and people browsing the net these days are starting to frown uponsettings and people browsing the net these days are starting to frown upon
Cookies because they store information on their local computer that they doCookies because they store information on their local computer that they do
not want stored there.not want stored there.
PHP has a great set of functions that can achieve the same results ofPHP has a great set of functions that can achieve the same results of
Cookies and more without storing information on the user's computer. PHPCookies and more without storing information on the user's computer. PHP
Sessions store the information on the web server in a location that you choseSessions store the information on the web server in a location that you chose
in special files. These files are connected to the user's web browser via thein special files. These files are connected to the user's web browser via the
server and a special ID called a "Session ID". This is nearly 99% flawless inserver and a special ID called a "Session ID". This is nearly 99% flawless in
operation and it is virtually invisible to the user.operation and it is virtually invisible to the user.
Vibrant Technology & Computers
Vashi,Navi Mumbai 25
PHP - SessionsPHP - Sessions
•Sessions store their identifier in a cookie in the client’s browserSessions store their identifier in a cookie in the client’s browser
•Every page that uses session data must be proceeded by theEvery page that uses session data must be proceeded by the
session_start()session_start() functionfunction
•Session variables are then set and retrieved by accessing the globalSession variables are then set and retrieved by accessing the global
$_SESSION[]$_SESSION[]
•Save it asSave it as session.phpsession.php
<?php<?php
session_start();session_start();
if (!$_SESSION["count"])if (!$_SESSION["count"])
$_SESSION["count"] = 0;$_SESSION["count"] = 0;
if ($_GET["count"] == "yes")if ($_GET["count"] == "yes")
$_SESSION["count"] = $_SESSION["count"] + 1;$_SESSION["count"] = $_SESSION["count"] + 1;
echo "<h1>".$_SESSION["count"]."</h1>";echo "<h1>".$_SESSION["count"]."</h1>";
?>?>
<a href="session.php?count=yes">Click here to count</a><a href="session.php?count=yes">Click here to count</a>
Vibrant Technology & Computers
Vashi,Navi Mumbai 26
Avoid Error PHP - SessionsAvoid Error PHP - Sessions
PHP Example: <?php
echo "Look at this nasty error below:<br />";
session_start();
?>
Error!
PHP Example: <?php
session_start();
echo "Look at this nasty error below:";
?>
Correct
Warning: Cannot send session cookie - headers already sent
by (output started at
session_header_error/session_error.php:2) in
session_header_error/session_error.php on line 3
Warning: Cannot send session cache limiter - headers
already sent (output started at
session_header_error/session_error.php:2) in
session_header_error/session_error.php on line 3
Vibrant Technology & Computers
Vashi,Navi Mumbai 27
Destroy PHP - SessionsDestroy PHP - Sessions
Destroying a Session
why it is necessary to destroy a session when the session will get
destroyed when the user closes their browser. Well, imagine that you
had a session registered called "access_granted" and you were using
that to determine if the user was logged into your site based upon a
username and password. Anytime you have a login feature, to make
the users feel better, you should have a logout feature as well. That's
where this cool function called session_destroy() comes in handy.
session_destroy() will completely demolish your session (no, the
computer won't blow up or self destruct) but it just deletes the session
files and clears any trace of that session.
NOTE: If you are using the $_SESSION superglobal array, you must
clear the array values first, then run session_destroy.
Here's how we use session_destroy():
Vibrant Technology & Computers
Vashi,Navi Mumbai 28
Destroy PHP - SessionsDestroy PHP - Sessions
<?php
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
$_SESSION = array();
session_destroy();
echo "<strong>Step 5 - Destroy This Session </strong><br />";
if($_SESSION['name']){
    echo "The session is still active";
} else {
    echo "Ok, the session is no longer active! <br />";
    echo "<a href="page1.php"><< Go Back Step 1</a>";
}
?>
Vibrant Technology & Computers
Vashi,Navi Mumbai 29
PHP OverviewPHP Overview
 Easy learning
 Syntax Perl- and C-like syntax. Relatively
easy to learn.
 Large function library
 Embedded directly into HTML
 Interpreted, no need to compile
 Open Source server-side scripting language
designed specifically for the web.
Vibrant Technology & Computers
Vashi,Navi Mumbai 30
PHP Overview (cont.)PHP Overview (cont.)
 Conceived in 1994, now used on +10 million
web sites.
 Outputs not only HTML but can output XML,
images (JPG & PNG), PDF files and even Flash
movies all generated on the fly. Can write these
files to the file system.
 Supports a wide-range of databases
(20+ODBC).
 PHP also has support for talking to other
services using protocols such as LDAP, IMAP,
SNMP, NNTP, POP3, HTTP.
Vibrant Technology & Computers
Vashi,Navi Mumbai 31
 Save as sample.php:
<!– sample.php -->
<html><body>
<strong>Hello World!</strong><br />
<?php
echo “<h2>Hello, World</h2>”; ?>
<?php
$myvar = "Hello World";
echo $myvar;
?>
</body></html>
First PHP scriptFirst PHP script
Vibrant Technology & Computers
Vashi,Navi Mumbai 32
second.phpsecond.php
<html><head><title>MySQL Table Viewer</title></head><body>
<?php
// change the value of $dbuser and $dbpass to your username and password
$dbhost = 'hercules.cs.kent.edu:3306';
$dbuser = 'nruan';
$dbpass = ‘*****************’;
$dbname = $dbuser;
$table = 'account';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if (!$conn) {
die('Could not connect: ' . mysql_error());
}
if (!mysql_select_db($dbname))
die("Can't select database");
Vibrant Technology & Computers
Vashi,Navi Mumbai 33
second.php (cont.)second.php (cont.)
$result = mysql_query("SHOW TABLES");
if (!$result) {
die("Query to show fields from table failed");
}
$num_row = mysql_num_rows($result);
echo "<h1>Choose one table:<h1>";
echo "<form action="showtable.php" method="POST">";
echo "<select name="table" size="1" Font size="+2">";
for($i=0; $i<$num_row; $i++) {
$tablename=mysql_fetch_row($result);
echo "<option value="{$tablename[0]}" >{$tablename[0]}</option>";
}
echo "</select>";
echo "<div><input type="submit" value="submit"></div>";
echo "</form>";
mysql_free_result($result);
mysql_close($conn);
?>
</body></html>
Vibrant Technology & Computers
Vashi,Navi Mumbai 34
showtable.phpshowtable.php
<html><head>
<title>MySQL Table Viewer</title>
</head>
<body>
<?php
$dbhost = 'hercules.cs.kent.edu:3306';
$dbuser = 'nruan';
$dbpass = ‘**********’;
$dbname = 'nruan';
$table = $_POST[“table”];
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if (!$conn)
die('Could not connect: ' . mysql_error());
if (!mysql_select_db($dbname))
die("Can't select database");
$result = mysql_query("SELECT * FROM {$table}");
if (!$result) die("Query to show fields from table failed!" . mysql_error());
Vibrant Technology & Computers
Vashi,Navi Mumbai 35
showtable.php (cont.)showtable.php (cont.)
$fields_num = mysql_num_fields($result);
echo "<h1>Table: {$table}</h1>";
echo "<table border='1'><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++) {
$field = mysql_fetch_field($result);
echo "<td><b>{$field->name}</b></td>";
}
echo "</tr>n";
while($row = mysql_fetch_row($result)) {
echo "<tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td>$cell</td>";
echo "</tr>n";
}
mysql_free_result($result);
mysql_close($conn);
?>
</body></html>
Vibrant Technology & Computers
Vashi,Navi Mumbai 36
Functions CoveredFunctions Covered
 mysql_connect() mysql_select_db()
 include()
 mysql_query() mysql_num_rows()
 mysql_fetch_array() mysql_close()
Vibrant Technology & Computers
Vashi,Navi Mumbai 37
History of PHPHistory of PHP
 PHP began in 1995 when Rasmus Lerdorf developed a
Perl/CGI script toolset he called the Personal Home
Page or PHP
 PHP 2 released 1997 (PHP now stands for Hypertex
Processor). Lerdorf developed it further, using C instead
 PHP3 released in 1998 (50,000 users)
 PHP4 released in 2000 (3.6 million domains).
Considered debut of functional language and including
Perl parsing, with other major features
 PHP5.0.0 released July 13, 2004 (113 libraries>1,000
functions with extensive object-oriented programming)
 PHP5.0.5 released Sept. 6, 2005 for maintenance and
bug fixes
Vibrant Technology & Computers
Vashi,Navi Mumbai 38
Recommended Texts for Learning PHPRecommended Texts for Learning PHP
 Larry Ullman’s books from the Visual Quickpro
series
 PHP & MySQL for Dummies
 Beginning PHP 5 and MySQL: From Novice to
Professional by W. Jason Gilmore
 (This is more advanced and dense than the others,
but great to read once you’ve finished the easier
books. One of the best definition/description of
object oriented programming I’ve read)
Vibrant Technology & Computers
Vashi,Navi Mumbai 39
PHP ReferencesPHP References
http://www.php.net <-- php home page
http://www.phpbuilder.com/
http://www.devshed.com/
http://www.phpmyadmin.net/
http://www.hotscripts.com/PHP/
http://geocities.com/stuprojects/ChatroomDescription.htm
http://www.academic.marist.edu/~kbhkj/chatroom/chatroom.htm
http://www.aus-etrade.com/Scripts/php.php
http://www.codeproject.com/asp/CDIChatSubmit.asp
http://www.php.net/downloads <-- php download page
http://www.php.net/manual/en/install.windows.php <-- php
installation manual
http://php.resourceindex.com/ <-- PHP resources like sample
programs, text book references, etc.
http://www.daniweb.com/techtalkforums/forum17.html  php
forums
Vibrant Technology & Computers
Vashi,Navi Mumbai 40
T
H
A
N
K
Y
O
U
Vibrant Technology & Computers
Vashi,Navi Mumbai 41

Contenu connexe

Tendances

Introduction to php
Introduction to phpIntroduction to php
Introduction to phpAnjan Banda
 
PHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet SolutionPHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet SolutionMazenetsolution
 
PHP Basic and Fundamental Questions and Answers with Detail Explanation
PHP Basic and Fundamental Questions and Answers with Detail ExplanationPHP Basic and Fundamental Questions and Answers with Detail Explanation
PHP Basic and Fundamental Questions and Answers with Detail ExplanationAbdul Rahman Sherzad
 
07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboards07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboardsDenis Ristic
 
PHP Workshop Notes
PHP Workshop NotesPHP Workshop Notes
PHP Workshop NotesPamela Fox
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHPBradley Holt
 
PHP complete reference with database concepts for beginners
PHP complete reference with database concepts for beginnersPHP complete reference with database concepts for beginners
PHP complete reference with database concepts for beginnersMohammed Mushtaq Ahmed
 
Zend Certification PHP 5 Sample Questions
Zend Certification PHP 5 Sample QuestionsZend Certification PHP 5 Sample Questions
Zend Certification PHP 5 Sample QuestionsJagat Kothari
 
Short Intro to PHP and MySQL
Short Intro to PHP and MySQLShort Intro to PHP and MySQL
Short Intro to PHP and MySQLJussi Pohjolainen
 
Open Source Package PHP & MySQL
Open Source Package PHP & MySQLOpen Source Package PHP & MySQL
Open Source Package PHP & MySQLkalaisai
 

Tendances (20)

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
PHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet SolutionPHP - Introduction to PHP - Mazenet Solution
PHP - Introduction to PHP - Mazenet Solution
 
PHP slides
PHP slidesPHP slides
PHP slides
 
PHP Basic and Fundamental Questions and Answers with Detail Explanation
PHP Basic and Fundamental Questions and Answers with Detail ExplanationPHP Basic and Fundamental Questions and Answers with Detail Explanation
PHP Basic and Fundamental Questions and Answers with Detail Explanation
 
PHP MySQL Workshop - facehook
PHP MySQL Workshop - facehookPHP MySQL Workshop - facehook
PHP MySQL Workshop - facehook
 
07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboards07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboards
 
PHP Workshop Notes
PHP Workshop NotesPHP Workshop Notes
PHP Workshop Notes
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDESPHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
 
PHP
PHPPHP
PHP
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Php
PhpPhp
Php
 
PHP complete reference with database concepts for beginners
PHP complete reference with database concepts for beginnersPHP complete reference with database concepts for beginners
PHP complete reference with database concepts for beginners
 
php
phpphp
php
 
Zend Certification PHP 5 Sample Questions
Zend Certification PHP 5 Sample QuestionsZend Certification PHP 5 Sample Questions
Zend Certification PHP 5 Sample Questions
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Short Intro to PHP and MySQL
Short Intro to PHP and MySQLShort Intro to PHP and MySQL
Short Intro to PHP and MySQL
 
Open Source Package PHP & MySQL
Open Source Package PHP & MySQLOpen Source Package PHP & MySQL
Open Source Package PHP & MySQL
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
 

En vedette

Algebra of equivalent instances and its applications
Algebra of equivalent instances and its applicationsAlgebra of equivalent instances and its applications
Algebra of equivalent instances and its applicationsSSA KPI
 
Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web applicationtechbed
 
9 Holistic Steps to your Summer Body
9 Holistic Steps to your Summer Body9 Holistic Steps to your Summer Body
9 Holistic Steps to your Summer BodyMel Cooper
 
Pat Good Results Analysis
Pat Good Results AnalysisPat Good Results Analysis
Pat Good Results Analysismilkowski
 
LR WORLD ΟΚΤΩΒΡΗΣ 2015
LR WORLD ΟΚΤΩΒΡΗΣ 2015LR WORLD ΟΚΤΩΒΡΗΣ 2015
LR WORLD ΟΚΤΩΒΡΗΣ 2015George Taramigkos
 
Plastered T-shirts Building a Brand in China
Plastered T-shirts Building a Brand in ChinaPlastered T-shirts Building a Brand in China
Plastered T-shirts Building a Brand in ChinaPlastered T-shirts
 
PenO3 Introductie slides
PenO3 Introductie slidesPenO3 Introductie slides
PenO3 Introductie slidesRobin De Croon
 
Investigation of SKN 3.0 Heliocollectors Work Efficiency
Investigation of SKN 3.0 Heliocollectors Work EfficiencyInvestigation of SKN 3.0 Heliocollectors Work Efficiency
Investigation of SKN 3.0 Heliocollectors Work EfficiencySSA KPI
 
Open stack platform director
Open stack platform director Open stack platform director
Open stack platform director Jsonr4
 
Αυτοκτονικότητα και αυτοκτονία
Αυτοκτονικότητα και αυτοκτονίαΑυτοκτονικότητα και αυτοκτονία
Αυτοκτονικότητα και αυτοκτονίαcitizensagainstdepression
 
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...Resource Media
 
Fast and Instant Payday Loans in Canada
Fast and Instant Payday Loans in CanadaFast and Instant Payday Loans in Canada
Fast and Instant Payday Loans in CanadaJMD Loan
 
The Relevance Imperative - TECHconnect Bangalore 2015
The Relevance Imperative - TECHconnect Bangalore 2015The Relevance Imperative - TECHconnect Bangalore 2015
The Relevance Imperative - TECHconnect Bangalore 2015LinkedIn India
 
Dream it tonight achieve it tomorrow - presentation
Dream it tonight achieve it tomorrow   - presentationDream it tonight achieve it tomorrow   - presentation
Dream it tonight achieve it tomorrow - presentationdmjohn100
 
Supply chain design under uncertainty using sample average approximation and ...
Supply chain design under uncertainty using sample average approximation and ...Supply chain design under uncertainty using sample average approximation and ...
Supply chain design under uncertainty using sample average approximation and ...SSA KPI
 
35th anniversary presentation (2005)
35th anniversary presentation (2005)35th anniversary presentation (2005)
35th anniversary presentation (2005)PAR
 
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!Need To Get Your Mojo Back? Keeping You and Your Team Motivated!
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!Multifamily Insiders
 

En vedette (19)

Algebra of equivalent instances and its applications
Algebra of equivalent instances and its applicationsAlgebra of equivalent instances and its applications
Algebra of equivalent instances and its applications
 
Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web application
 
9 Holistic Steps to your Summer Body
9 Holistic Steps to your Summer Body9 Holistic Steps to your Summer Body
9 Holistic Steps to your Summer Body
 
Pat Good Results Analysis
Pat Good Results AnalysisPat Good Results Analysis
Pat Good Results Analysis
 
LR WORLD ΟΚΤΩΒΡΗΣ 2015
LR WORLD ΟΚΤΩΒΡΗΣ 2015LR WORLD ΟΚΤΩΒΡΗΣ 2015
LR WORLD ΟΚΤΩΒΡΗΣ 2015
 
Plastered T-shirts Building a Brand in China
Plastered T-shirts Building a Brand in ChinaPlastered T-shirts Building a Brand in China
Plastered T-shirts Building a Brand in China
 
6627
66276627
6627
 
PenO3 Introductie slides
PenO3 Introductie slidesPenO3 Introductie slides
PenO3 Introductie slides
 
Investigation of SKN 3.0 Heliocollectors Work Efficiency
Investigation of SKN 3.0 Heliocollectors Work EfficiencyInvestigation of SKN 3.0 Heliocollectors Work Efficiency
Investigation of SKN 3.0 Heliocollectors Work Efficiency
 
Open stack platform director
Open stack platform director Open stack platform director
Open stack platform director
 
Algebra 2 ca intro presentation
Algebra 2 ca intro presentationAlgebra 2 ca intro presentation
Algebra 2 ca intro presentation
 
Αυτοκτονικότητα και αυτοκτονία
Αυτοκτονικότητα και αυτοκτονίαΑυτοκτονικότητα και αυτοκτονία
Αυτοκτονικότητα και αυτοκτονία
 
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...
Behind the Lens of a Veteran Photojournalist: How to Tell More Compelling Sto...
 
Fast and Instant Payday Loans in Canada
Fast and Instant Payday Loans in CanadaFast and Instant Payday Loans in Canada
Fast and Instant Payday Loans in Canada
 
The Relevance Imperative - TECHconnect Bangalore 2015
The Relevance Imperative - TECHconnect Bangalore 2015The Relevance Imperative - TECHconnect Bangalore 2015
The Relevance Imperative - TECHconnect Bangalore 2015
 
Dream it tonight achieve it tomorrow - presentation
Dream it tonight achieve it tomorrow   - presentationDream it tonight achieve it tomorrow   - presentation
Dream it tonight achieve it tomorrow - presentation
 
Supply chain design under uncertainty using sample average approximation and ...
Supply chain design under uncertainty using sample average approximation and ...Supply chain design under uncertainty using sample average approximation and ...
Supply chain design under uncertainty using sample average approximation and ...
 
35th anniversary presentation (2005)
35th anniversary presentation (2005)35th anniversary presentation (2005)
35th anniversary presentation (2005)
 
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!Need To Get Your Mojo Back? Keeping You and Your Team Motivated!
Need To Get Your Mojo Back? Keeping You and Your Team Motivated!
 

Similaire à Php mysql training-in-mumbai

Similaire à Php mysql training-in-mumbai (20)

PHP - Introduction to PHP Fundamentals
PHP -  Introduction to PHP FundamentalsPHP -  Introduction to PHP Fundamentals
PHP - Introduction to PHP Fundamentals
 
PHP
PHPPHP
PHP
 
Php Tutorial | Introduction Demo | Basics
 Php Tutorial | Introduction Demo | Basics Php Tutorial | Introduction Demo | Basics
Php Tutorial | Introduction Demo | Basics
 
Learning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For BeginnersLearning of Php and My SQL Tutorial | For Beginners
Learning of Php and My SQL Tutorial | For Beginners
 
Php My SQL Tutorial | beginning
Php My SQL Tutorial | beginningPhp My SQL Tutorial | beginning
Php My SQL Tutorial | beginning
 
Php with my sql
Php with my sqlPhp with my sql
Php with my sql
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 
Prersentation
PrersentationPrersentation
Prersentation
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
slidesharenew1
slidesharenew1slidesharenew1
slidesharenew1
 
Php training100%placement-in-mumbai
Php training100%placement-in-mumbaiPhp training100%placement-in-mumbai
Php training100%placement-in-mumbai
 
FYBSC IT Web Programming Unit IV PHP and MySQL
FYBSC IT Web Programming Unit IV  PHP and MySQLFYBSC IT Web Programming Unit IV  PHP and MySQL
FYBSC IT Web Programming Unit IV PHP and MySQL
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Unit 1
Unit 1Unit 1
Unit 1
 
The new features of PHP 7 - Enrico Zimuel - Codemotion Milan 2016
The new features of PHP 7 - Enrico Zimuel - Codemotion Milan 2016The new features of PHP 7 - Enrico Zimuel - Codemotion Milan 2016
The new features of PHP 7 - Enrico Zimuel - Codemotion Milan 2016
 
The new features of PHP 7
The new features of PHP 7The new features of PHP 7
The new features of PHP 7
 
Php basics
Php basicsPhp basics
Php basics
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
 
Winter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHPWinter%200405%20-%20Beginning%20PHP
Winter%200405%20-%20Beginning%20PHP
 

Plus de Unmesh Baile

java-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbaijava-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbaiUnmesh Baile
 
Java course-in-mumbai
Java course-in-mumbaiJava course-in-mumbai
Java course-in-mumbaiUnmesh Baile
 
Robotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbaiRobotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbaiUnmesh Baile
 
Corporate-training-for-msbi-course-in-mumbai
Corporate-training-for-msbi-course-in-mumbaiCorporate-training-for-msbi-course-in-mumbai
Corporate-training-for-msbi-course-in-mumbaiUnmesh Baile
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiUnmesh Baile
 
Professional dataware-housing-training-in-mumbai
Professional dataware-housing-training-in-mumbaiProfessional dataware-housing-training-in-mumbai
Professional dataware-housing-training-in-mumbaiUnmesh Baile
 
Best-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiBest-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiUnmesh Baile
 
Selenium-corporate-training-in-mumbai
Selenium-corporate-training-in-mumbaiSelenium-corporate-training-in-mumbai
Selenium-corporate-training-in-mumbaiUnmesh Baile
 
Weblogic-clustering-failover-and-load-balancing-training
Weblogic-clustering-failover-and-load-balancing-trainingWeblogic-clustering-failover-and-load-balancing-training
Weblogic-clustering-failover-and-load-balancing-trainingUnmesh Baile
 
Advance-excel-professional-trainer-in-mumbai
Advance-excel-professional-trainer-in-mumbaiAdvance-excel-professional-trainer-in-mumbai
Advance-excel-professional-trainer-in-mumbaiUnmesh Baile
 
Best corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiBest corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiUnmesh Baile
 
R-programming-training-in-mumbai
R-programming-training-in-mumbaiR-programming-training-in-mumbai
R-programming-training-in-mumbaiUnmesh Baile
 
Corporate-data-warehousing-training
Corporate-data-warehousing-trainingCorporate-data-warehousing-training
Corporate-data-warehousing-trainingUnmesh Baile
 
Sas-training-in-mumbai
Sas-training-in-mumbaiSas-training-in-mumbai
Sas-training-in-mumbaiUnmesh Baile
 
Microsoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiMicrosoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiUnmesh Baile
 
Linux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiLinux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiUnmesh Baile
 
Corporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiCorporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiUnmesh Baile
 
Corporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiCorporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiUnmesh Baile
 
Best-robotics-training-in-mumbai
Best-robotics-training-in-mumbaiBest-robotics-training-in-mumbai
Best-robotics-training-in-mumbaiUnmesh Baile
 
Best-embedded-system-classes-in-mumbai
Best-embedded-system-classes-in-mumbaiBest-embedded-system-classes-in-mumbai
Best-embedded-system-classes-in-mumbaiUnmesh Baile
 

Plus de Unmesh Baile (20)

java-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbaijava-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbai
 
Java course-in-mumbai
Java course-in-mumbaiJava course-in-mumbai
Java course-in-mumbai
 
Robotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbaiRobotics corporate-training-in-mumbai
Robotics corporate-training-in-mumbai
 
Corporate-training-for-msbi-course-in-mumbai
Corporate-training-for-msbi-course-in-mumbaiCorporate-training-for-msbi-course-in-mumbai
Corporate-training-for-msbi-course-in-mumbai
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
 
Professional dataware-housing-training-in-mumbai
Professional dataware-housing-training-in-mumbaiProfessional dataware-housing-training-in-mumbai
Professional dataware-housing-training-in-mumbai
 
Best-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbaiBest-embedded-corporate-training-in-mumbai
Best-embedded-corporate-training-in-mumbai
 
Selenium-corporate-training-in-mumbai
Selenium-corporate-training-in-mumbaiSelenium-corporate-training-in-mumbai
Selenium-corporate-training-in-mumbai
 
Weblogic-clustering-failover-and-load-balancing-training
Weblogic-clustering-failover-and-load-balancing-trainingWeblogic-clustering-failover-and-load-balancing-training
Weblogic-clustering-failover-and-load-balancing-training
 
Advance-excel-professional-trainer-in-mumbai
Advance-excel-professional-trainer-in-mumbaiAdvance-excel-professional-trainer-in-mumbai
Advance-excel-professional-trainer-in-mumbai
 
Best corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiBest corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbai
 
R-programming-training-in-mumbai
R-programming-training-in-mumbaiR-programming-training-in-mumbai
R-programming-training-in-mumbai
 
Corporate-data-warehousing-training
Corporate-data-warehousing-trainingCorporate-data-warehousing-training
Corporate-data-warehousing-training
 
Sas-training-in-mumbai
Sas-training-in-mumbaiSas-training-in-mumbai
Sas-training-in-mumbai
 
Microsoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiMicrosoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbai
 
Linux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiLinux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbai
 
Corporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiCorporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbai
 
Corporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbaiCorporate-informatica-training-in-mumbai
Corporate-informatica-training-in-mumbai
 
Best-robotics-training-in-mumbai
Best-robotics-training-in-mumbaiBest-robotics-training-in-mumbai
Best-robotics-training-in-mumbai
 
Best-embedded-system-classes-in-mumbai
Best-embedded-system-classes-in-mumbaiBest-embedded-system-classes-in-mumbai
Best-embedded-system-classes-in-mumbai
 

Dernier

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Php mysql training-in-mumbai

  • 1. Welcome to vibrantWelcome to vibrant technologies andtechnologies and computerscomputers Vibrant Technology & Computers Vashi,Navi Mumbai 1
  • 2. Vibrant Technology & Computers Vashi,Navi Mumbai 2
  • 3. Content : 1. what is php? 2. what php code look like? 3.varibles 4.variable usage 5.echo 6.arithmetics 7.concetenation 8.escaping the character 9.destory php-sessions 10.php overview 11.if..else 12.while loops Vibrant Technology & Computers Vashi,Navi Mumbai 3
  • 4. Goal of this tutorialGoal of this tutorial  Not to teach everything about PHP, but provide the basic knowledge  Explain code of examples  Provide some useful references Vibrant Technology & Computers Vashi,Navi Mumbai 4
  • 5.  PHP == ‘Hypertext Preprocessor’  Open-source, server-side scripting language  Used to generate dynamic web-pages  PHP scripts reside between reserved PHP tags  This allows the programmer to embed PHP scripts within HTML pages What is PHP?What is PHP? Vibrant Technology & Computers Vashi,Navi Mumbai 5
  • 6. What is PHP (cont’d)What is PHP (cont’d)  Interpreted language, scripts are parsed at run- time rather than compiled beforehand  Executed on the server-side  Source-code not visible by client  ‘View Source’ in browsers does not display the PHP code  Various built-in functions allow for fast development  Compatible with many popular databases Vibrant Technology & Computers Vashi,Navi Mumbai 6
  • 7. What does PHP code look like?What does PHP code look like?  Structurally similar to C/C++  Supports procedural and object-oriented paradigm (to some degree)  All PHP statements end with a semi-colon  Each PHP script must be enclosed in the reserved PHP tag <?php … ?> Vibrant Technology & Computers Vashi,Navi Mumbai 7
  • 8. Comments in PHPComments in PHP  Standard C, C++, and shell comment symbols // C++ and Java-style comment # Shell-style comments /* C-style comments These can span multiple lines */ Vibrant Technology & Computers Vashi,Navi Mumbai 8
  • 9. Variables in PHPVariables in PHP  PHP variables must begin with a “$” sign  Case-sensitive ($Foo != $foo != $fOo)  Global and locally-scoped variables  Global variables can be used anywhere  Local variables restricted to a function or class  Certain variable names reserved by PHP  Form variables ($_POST, $_GET)  Server variables ($_SERVER)  Etc. Vibrant Technology & Computers Vashi,Navi Mumbai 9
  • 10. Variable usageVariable usage <?php $foo = 25; // Numerical variable $bar = “Hello”; // String variable $foo = ($foo * 7); // Multiplies foo by 7 $bar = ($bar * 7); // Invalid expression ?> Vibrant Technology & Computers Vashi,Navi Mumbai 10
  • 11. EchoEcho  The PHP command ‘echo’ is used to output the parameters passed to it  The typical usage for this is to send data to the client’s web-browser  Syntax  void echo (string arg1 [, string argn...])  In practice, arguments are not passed in parentheses since echo is a language construct rather than an actual function Vibrant Technology & Computers Vashi,Navi Mumbai 11
  • 12. Echo exampleEcho example  Notice how echo ‘5x5=$foo’ outputs $foo rather than replacing it with 25  Strings in single quotes (‘ ’) are not interpreted or evaluated by PHP  This is true for both variables and character escape-sequences (such as “n” or “”) <?php $foo = 25; // Numerical variable $bar = “Hello”; // String variable echo $bar; // Outputs Hello echo $foo,$bar; // Outputs 25Hello echo “5x5=”,$foo; // Outputs 5x5=25 echo “5x5=$foo”; // Outputs 5x5=25 echo ‘5x5=$foo’; // Outputs 5x5=$foo ?> Vibrant Technology & Computers Vashi,Navi Mumbai 12
  • 13. Arithmetic OperationsArithmetic Operations  $a - $b // subtraction  $a * $b // multiplication  $a / $b // division  $a += 5 // $a = $a+5 Also works for *= and /= <?php $a=15; $b=30; $total=$a+$b; Print $total; Print “<p><h1>$total</h1>”; // total is 45 ?> Vibrant Technology & Computers Vashi,Navi Mumbai 13
  • 14. ConcatenationConcatenation  Use a period to join strings into one. <?php $string1=“Hello”; $string2=“PHP”; $string3=$string1 . “ ” . $string2; Print $string3; ?> Hello PHP Vibrant Technology & Computers Vashi,Navi Mumbai 14
  • 15. Escaping the CharacterEscaping the Character  If the string has a set of double quotation marks that must remain visible, use the [backslash] before the quotation marks to ignore and display them. <?php $heading=“”Computer Science””; Print $heading; ?> “Computer Science” Vibrant Technology & Computers Vashi,Navi Mumbai 15
  • 16. PHP Control StructuresPHP Control Structures  Control Structures: Are the structures within a language that allow us to control the flow of execution through a program or script.  Grouped into conditional (branching) structures (e.g. if/else) and repetition structures (e.g. while loops).  Example if/else if/else statement: if ($foo == 0) { echo ‘The variable foo is equal to 0’; } else if (($foo > 0) && ($foo <= 5)) { echo ‘The variable foo is between 1 and 5’; } else { echo ‘The variable foo is equal to ‘.$foo; } Vibrant Technology & Computers Vashi,Navi Mumbai 16
  • 17. If ... Else...If ... Else...  If (condition) { Statements; } Else { Statement; } <?php If($user==“John”) { Print “Hello John.”; } Else { Print “You are not John.”; } ?> No THEN in PHP Vibrant Technology & Computers Vashi,Navi Mumbai 17
  • 18. While LoopsWhile Loops  While (condition) { Statements; } <?php $count=0; While($count<3) { Print “hello PHP. ”; $count += 1; // $count = $count + 1; // or // $count++; ?> hello PHP. hello PHP. hello PHP. Vibrant Technology & Computers Vashi,Navi Mumbai 18
  • 19. Date DisplayDate Display $datedisplay=date(“yyyy/m/d”); Print $datedisplay; # If the date is April 1st , 2009 # It would display as 2009/4/1 2009/4/1 $datedisplay=date(“l, F m, Y”); Print $datedisplay; # If the date is April 1st , 2009 # Wednesday, April 1, 2009 Wednesday, April 1, 2009 Vibrant Technology & Computers Vashi,Navi Mumbai 19
  • 20. Month, Day & Date Format SymbolsMonth, Day & Date Format Symbols M Jan F January m 01 n 1 Day of Month d 01 Day of Month J 1 Day of Week l Monday Day of Week D Mon Vibrant Technology & Computers Vashi,Navi Mumbai 20
  • 21. FunctionsFunctions  Functions MUST be defined before then can be called  Function headers are of the format  Note that no return type is specified  Unlike variables, function names are not case sensitive (foo(…) == Foo(…) == FoO(…)) function functionName($arg_1, $arg_2, …, $arg_n) Vibrant Technology & Computers Vashi,Navi Mumbai 21
  • 22. Functions exampleFunctions example <?php // This is a function function foo($arg_1, $arg_2) { $arg_2 = $arg_1 * $arg_2; return $arg_2; } $result_1 = foo(12, 3); // Store the function echo $result_1; // Outputs 36 echo foo(12, 3); // Outputs 36 ?> Vibrant Technology & Computers Vashi,Navi Mumbai 22
  • 23. Include FilesInclude Files Include “opendb.php”; Include “closedb.php”; This inserts files; the code in files will be inserted into current code. This will provide useful and protective means once you connect to a database, as well as for other repeated functions. Include (“footer.php”); The file footer.php might look like: <hr SIZE=11 NOSHADE WIDTH=“100%”> <i>Copyright © 2008-2010 KSU </i></font><br> <i>ALL RIGHTS RESERVED</i></font><br> <i>URL: http://www.kent.edu</i></font><br> Vibrant Technology & Computers Vashi,Navi Mumbai 23
  • 24. PHP - FormsPHP - Forms •Access to the HTTP POST and GET data is simple in PHPAccess to the HTTP POST and GET data is simple in PHP •The global variables $_POST[] and $_GET[] contain theThe global variables $_POST[] and $_GET[] contain the request datarequest data <?php if ($_POST["submit"]) echo "<h2>You clicked Submit!</h2>"; else if ($_POST["cancel"]) echo "<h2>You clicked Cancel!</h2>"; ?> <form action="form.php" method="post"> <input type="submit" name="submit" value="Submit"> <input type="submit" name="cancel" value="Cancel"> </form> Vibrant Technology & Computers Vashi,Navi Mumbai 24
  • 25. WHY PHP – Sessions ?WHY PHP – Sessions ?Whenever you want to create aWhenever you want to create a websitewebsite that allows you to store and displaythat allows you to store and display information about a user, determine which user groups a person belongs to,information about a user, determine which user groups a person belongs to, utilize permissions on yourutilize permissions on your websitewebsite or you just want to do something cool onor you just want to do something cool on your site,your site, PHP's SessionsPHP's Sessions are vital toare vital to eacheach of these features.of these features. Cookies are about 30% unreliable right now and it's getting worse every day.Cookies are about 30% unreliable right now and it's getting worse every day. More and more web browsers are starting to come with security and privacyMore and more web browsers are starting to come with security and privacy settings and people browsing the net these days are starting to frown uponsettings and people browsing the net these days are starting to frown upon Cookies because they store information on their local computer that they doCookies because they store information on their local computer that they do not want stored there.not want stored there. PHP has a great set of functions that can achieve the same results ofPHP has a great set of functions that can achieve the same results of Cookies and more without storing information on the user's computer. PHPCookies and more without storing information on the user's computer. PHP Sessions store the information on the web server in a location that you choseSessions store the information on the web server in a location that you chose in special files. These files are connected to the user's web browser via thein special files. These files are connected to the user's web browser via the server and a special ID called a "Session ID". This is nearly 99% flawless inserver and a special ID called a "Session ID". This is nearly 99% flawless in operation and it is virtually invisible to the user.operation and it is virtually invisible to the user. Vibrant Technology & Computers Vashi,Navi Mumbai 25
  • 26. PHP - SessionsPHP - Sessions •Sessions store their identifier in a cookie in the client’s browserSessions store their identifier in a cookie in the client’s browser •Every page that uses session data must be proceeded by theEvery page that uses session data must be proceeded by the session_start()session_start() functionfunction •Session variables are then set and retrieved by accessing the globalSession variables are then set and retrieved by accessing the global $_SESSION[]$_SESSION[] •Save it asSave it as session.phpsession.php <?php<?php session_start();session_start(); if (!$_SESSION["count"])if (!$_SESSION["count"]) $_SESSION["count"] = 0;$_SESSION["count"] = 0; if ($_GET["count"] == "yes")if ($_GET["count"] == "yes") $_SESSION["count"] = $_SESSION["count"] + 1;$_SESSION["count"] = $_SESSION["count"] + 1; echo "<h1>".$_SESSION["count"]."</h1>";echo "<h1>".$_SESSION["count"]."</h1>"; ?>?> <a href="session.php?count=yes">Click here to count</a><a href="session.php?count=yes">Click here to count</a> Vibrant Technology & Computers Vashi,Navi Mumbai 26
  • 27. Avoid Error PHP - SessionsAvoid Error PHP - Sessions PHP Example: <?php echo "Look at this nasty error below:<br />"; session_start(); ?> Error! PHP Example: <?php session_start(); echo "Look at this nasty error below:"; ?> Correct Warning: Cannot send session cookie - headers already sent by (output started at session_header_error/session_error.php:2) in session_header_error/session_error.php on line 3 Warning: Cannot send session cache limiter - headers already sent (output started at session_header_error/session_error.php:2) in session_header_error/session_error.php on line 3 Vibrant Technology & Computers Vashi,Navi Mumbai 27
  • 28. Destroy PHP - SessionsDestroy PHP - Sessions Destroying a Session why it is necessary to destroy a session when the session will get destroyed when the user closes their browser. Well, imagine that you had a session registered called "access_granted" and you were using that to determine if the user was logged into your site based upon a username and password. Anytime you have a login feature, to make the users feel better, you should have a logout feature as well. That's where this cool function called session_destroy() comes in handy. session_destroy() will completely demolish your session (no, the computer won't blow up or self destruct) but it just deletes the session files and clears any trace of that session. NOTE: If you are using the $_SESSION superglobal array, you must clear the array values first, then run session_destroy. Here's how we use session_destroy(): Vibrant Technology & Computers Vashi,Navi Mumbai 28
  • 29. Destroy PHP - SessionsDestroy PHP - Sessions <?php // start the session session_start(); header("Cache-control: private"); //IE 6 Fix $_SESSION = array(); session_destroy(); echo "<strong>Step 5 - Destroy This Session </strong><br />"; if($_SESSION['name']){     echo "The session is still active"; } else {     echo "Ok, the session is no longer active! <br />";     echo "<a href="page1.php"><< Go Back Step 1</a>"; } ?> Vibrant Technology & Computers Vashi,Navi Mumbai 29
  • 30. PHP OverviewPHP Overview  Easy learning  Syntax Perl- and C-like syntax. Relatively easy to learn.  Large function library  Embedded directly into HTML  Interpreted, no need to compile  Open Source server-side scripting language designed specifically for the web. Vibrant Technology & Computers Vashi,Navi Mumbai 30
  • 31. PHP Overview (cont.)PHP Overview (cont.)  Conceived in 1994, now used on +10 million web sites.  Outputs not only HTML but can output XML, images (JPG & PNG), PDF files and even Flash movies all generated on the fly. Can write these files to the file system.  Supports a wide-range of databases (20+ODBC).  PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP. Vibrant Technology & Computers Vashi,Navi Mumbai 31
  • 32.  Save as sample.php: <!– sample.php --> <html><body> <strong>Hello World!</strong><br /> <?php echo “<h2>Hello, World</h2>”; ?> <?php $myvar = "Hello World"; echo $myvar; ?> </body></html> First PHP scriptFirst PHP script Vibrant Technology & Computers Vashi,Navi Mumbai 32
  • 33. second.phpsecond.php <html><head><title>MySQL Table Viewer</title></head><body> <?php // change the value of $dbuser and $dbpass to your username and password $dbhost = 'hercules.cs.kent.edu:3306'; $dbuser = 'nruan'; $dbpass = ‘*****************’; $dbname = $dbuser; $table = 'account'; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if (!$conn) { die('Could not connect: ' . mysql_error()); } if (!mysql_select_db($dbname)) die("Can't select database"); Vibrant Technology & Computers Vashi,Navi Mumbai 33
  • 34. second.php (cont.)second.php (cont.) $result = mysql_query("SHOW TABLES"); if (!$result) { die("Query to show fields from table failed"); } $num_row = mysql_num_rows($result); echo "<h1>Choose one table:<h1>"; echo "<form action="showtable.php" method="POST">"; echo "<select name="table" size="1" Font size="+2">"; for($i=0; $i<$num_row; $i++) { $tablename=mysql_fetch_row($result); echo "<option value="{$tablename[0]}" >{$tablename[0]}</option>"; } echo "</select>"; echo "<div><input type="submit" value="submit"></div>"; echo "</form>"; mysql_free_result($result); mysql_close($conn); ?> </body></html> Vibrant Technology & Computers Vashi,Navi Mumbai 34
  • 35. showtable.phpshowtable.php <html><head> <title>MySQL Table Viewer</title> </head> <body> <?php $dbhost = 'hercules.cs.kent.edu:3306'; $dbuser = 'nruan'; $dbpass = ‘**********’; $dbname = 'nruan'; $table = $_POST[“table”]; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if (!$conn) die('Could not connect: ' . mysql_error()); if (!mysql_select_db($dbname)) die("Can't select database"); $result = mysql_query("SELECT * FROM {$table}"); if (!$result) die("Query to show fields from table failed!" . mysql_error()); Vibrant Technology & Computers Vashi,Navi Mumbai 35
  • 36. showtable.php (cont.)showtable.php (cont.) $fields_num = mysql_num_fields($result); echo "<h1>Table: {$table}</h1>"; echo "<table border='1'><tr>"; // printing table headers for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo "<td><b>{$field->name}</b></td>"; } echo "</tr>n"; while($row = mysql_fetch_row($result)) { echo "<tr>"; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($row as $cell) echo "<td>$cell</td>"; echo "</tr>n"; } mysql_free_result($result); mysql_close($conn); ?> </body></html> Vibrant Technology & Computers Vashi,Navi Mumbai 36
  • 37. Functions CoveredFunctions Covered  mysql_connect() mysql_select_db()  include()  mysql_query() mysql_num_rows()  mysql_fetch_array() mysql_close() Vibrant Technology & Computers Vashi,Navi Mumbai 37
  • 38. History of PHPHistory of PHP  PHP began in 1995 when Rasmus Lerdorf developed a Perl/CGI script toolset he called the Personal Home Page or PHP  PHP 2 released 1997 (PHP now stands for Hypertex Processor). Lerdorf developed it further, using C instead  PHP3 released in 1998 (50,000 users)  PHP4 released in 2000 (3.6 million domains). Considered debut of functional language and including Perl parsing, with other major features  PHP5.0.0 released July 13, 2004 (113 libraries>1,000 functions with extensive object-oriented programming)  PHP5.0.5 released Sept. 6, 2005 for maintenance and bug fixes Vibrant Technology & Computers Vashi,Navi Mumbai 38
  • 39. Recommended Texts for Learning PHPRecommended Texts for Learning PHP  Larry Ullman’s books from the Visual Quickpro series  PHP & MySQL for Dummies  Beginning PHP 5 and MySQL: From Novice to Professional by W. Jason Gilmore  (This is more advanced and dense than the others, but great to read once you’ve finished the easier books. One of the best definition/description of object oriented programming I’ve read) Vibrant Technology & Computers Vashi,Navi Mumbai 39
  • 40. PHP ReferencesPHP References http://www.php.net <-- php home page http://www.phpbuilder.com/ http://www.devshed.com/ http://www.phpmyadmin.net/ http://www.hotscripts.com/PHP/ http://geocities.com/stuprojects/ChatroomDescription.htm http://www.academic.marist.edu/~kbhkj/chatroom/chatroom.htm http://www.aus-etrade.com/Scripts/php.php http://www.codeproject.com/asp/CDIChatSubmit.asp http://www.php.net/downloads <-- php download page http://www.php.net/manual/en/install.windows.php <-- php installation manual http://php.resourceindex.com/ <-- PHP resources like sample programs, text book references, etc. http://www.daniweb.com/techtalkforums/forum17.html  php forums Vibrant Technology & Computers Vashi,Navi Mumbai 40
  • 41. T H A N K Y O U Vibrant Technology & Computers Vashi,Navi Mumbai 41