SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
HTML , PHP , MYSQL

              J.JAGAN., M.C.A
    KANCHI LINUX USER GROUP
HTML
<html>             <html>
<head> </head>     <head>LINUX</head>
<body> </body>     <body>we are in
</html>
 meeting</body>
                   </html>
Note:
Save by extention “file_name.html”
HTML
<html>
<body><form name=“a” action=“detail.php”
  method=post>
NO:<input type=“text” name=“no” size=“10”>
SEX:
Male<input type=“radio” name=“sex”
  value=“male”>
Female<input type=“radio” name=“sex”
  value=“female”>
DEPARTMENT : <select name=“dept”>
           <option>MBA</option>
           <option>MCA</option>
           </select>
</form> </body>
</html>
ATTRIBUTES
<br>                         = give break
<a href=“path”>link_name</a> = for link
<table> </table>             = create table
<tr> </tr>                   = insert table
                                 row
<td> </td>                   = table
                                 definition
<h1,2,3,4></h1,2,3,4>       = predefined
                                  font
<img src=“path”>            = insert image
Php_manual.ico
                  FIRST CODE
<? php                <html>
echo “This is PHP”;       <body>
echo “<br>” ;             <?php
?>                     echo “This is PHP”;

                           echo “<br>”;
                      ?>
                      </body>
                      </html>
php
<?php                   <?php
$ variable_name;        $a=10;
echo “variable_name”;   echo“$a”;
?>                      ?>
php
Loop:                  if:
<?php                        <?php
for($a=1;$a<=5;$a++)         $a=20;
 {                           $b=10;
   echo “$a”;                if($a>$b)
  }                          {
?>                           echo “A is greater”;
                             }
                             else
                             {
                             echo “B is  greater;
                             }
                             ?>php
Form with php
<html>
<body><form name=“a” action=“detail.php”
  method=post>
NO:<input type=“text” name=“no”
  size=“10”>
SEX:
Male<input type=“radio” name=“sex”
  value=“male”>
Female<input type=“radio” name=“sex”
  value=“female”>
DEPARTMENT : <select name=“dept”>
           <option>MBA</option>
           <option>MCA</option>
           </select>
</form> </body></html>
detail.php
<?php
$no=$_POST[‘no’];
$sex=$_POST[‘sex’];
$dept=$_POST[‘dept’];
echo “$no”;
echo “<br>”;
echo “$sex”;
echo “<br>”;
echo “$dept”;
?>
mysql for insert
<?php
$conn = mysql_connect('localhost', 'root', '')
  or die('Could not connect: ' . mysql_error());
echo ("Connected successfully");
echo ( "<BR>");
$rs=mysql_select_db(“stud",$conn)
     or die('cannot access');
$sql=("insert into info values
  ('$_POST[no]','$_POST[sex]','$_POST[dept]‘ )”);

$rs=mysql_query($sql,$conn) or die(“not
  connected");

echo("<br>");
echo("DATA IS INSERTED");
?>
For view
<?php
$link = mysql_connect('localhost',
  'root', '') or die('Could not connect:
  ' . mysql_error());
echo 'Connected successfully'."<BR>";

mysql_select_db(“stud”,$link) or
 die('cannot access');
$sql="select *from info";
echo "<table table color=red border='10'
  bordercolor=green >
<tr bgcolor=cyan>
<TH>NO</TH>
<TH>SEX</TH>
<TH>DEPT</TH>
</tr>";
while(($row=mysql_fetch_array($rs)))
{
echo("<tr>");
echo("<td>" . $row[“no"]. "</td>");
echo("<td>" . $row[“sex"] . "</td>");
echo("<td>" . $row[“dept"]."</td>");
echo("</tr>");
}
echo("</table>");
THANK YOU
WILL SEE ON NEXT
     SUNDAY

  ANY QUIRES ?

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (18)

Php mysql
Php mysqlPhp mysql
Php mysql
 
Php talk
Php talkPhp talk
Php talk
 
Using PHP
Using PHPUsing PHP
Using PHP
 
RESTful web services
RESTful web servicesRESTful web services
RESTful web services
 
Blog Hacks 2011
Blog Hacks 2011Blog Hacks 2011
Blog Hacks 2011
 
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel16.mysql stored procedures in laravel
16.mysql stored procedures in laravel
 
Session8
Session8Session8
Session8
 
Php Tutorial | Introduction Demo | Basics
 Php Tutorial | Introduction Demo | Basics Php Tutorial | Introduction Demo | Basics
Php Tutorial | Introduction Demo | Basics
 
Php101
Php101Php101
Php101
 
Using Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkUsing Geeklog as a Web Application Framework
Using Geeklog as a Web Application Framework
 
Php hacku
Php hackuPhp hacku
Php hacku
 
Ben Bridts - $ aws help
Ben Bridts -  $ aws helpBen Bridts -  $ aws help
Ben Bridts - $ aws help
 
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post MethodsPHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
 
Session3
Session3Session3
Session3
 
Micropage in microtime using microframework
Micropage in microtime using microframeworkMicropage in microtime using microframework
Micropage in microtime using microframework
 
wget.pl
wget.plwget.pl
wget.pl
 
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and MysqlDatabase Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
 
SULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programsSULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programs
 

Andere mochten auch

Php & mysql course syllabus
Php & mysql course syllabusPhp & mysql course syllabus
Php & mysql course syllabus
Papitha Velumani
 

Andere mochten auch (7)

Php essentials
Php essentialsPhp essentials
Php essentials
 
Introduction to php web programming - get and post
Introduction to php  web programming - get and postIntroduction to php  web programming - get and post
Introduction to php web programming - get and post
 
Php & mysql course syllabus
Php & mysql course syllabusPhp & mysql course syllabus
Php & mysql course syllabus
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
PHP Powerpoint -- Teach PHP with this
PHP Powerpoint -- Teach PHP with thisPHP Powerpoint -- Teach PHP with this
PHP Powerpoint -- Teach PHP with this
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 

Ähnlich wie Html , php, mysql intro

GettingStartedWithPHP
GettingStartedWithPHPGettingStartedWithPHP
GettingStartedWithPHP
Nat Weerawan
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 

Ähnlich wie Html , php, mysql intro (20)

PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDESPHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Mike King - Storytelling by Numbers MKTFEST 2014
Mike King - Storytelling by Numbers MKTFEST 2014Mike King - Storytelling by Numbers MKTFEST 2014
Mike King - Storytelling by Numbers MKTFEST 2014
 
Storytelling By Numbers
Storytelling By NumbersStorytelling By Numbers
Storytelling By Numbers
 
Tutorial_4_PHP
Tutorial_4_PHPTutorial_4_PHP
Tutorial_4_PHP
 
Tutorial_4_PHP
Tutorial_4_PHPTutorial_4_PHP
Tutorial_4_PHP
 
Tutorial_4_PHP
Tutorial_4_PHPTutorial_4_PHP
Tutorial_4_PHP
 
Tutorial_4_PHP
Tutorial_4_PHPTutorial_4_PHP
Tutorial_4_PHP
 
GettingStartedWithPHP
GettingStartedWithPHPGettingStartedWithPHP
GettingStartedWithPHP
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
 
PHP Tutorial (funtion)
PHP Tutorial (funtion)PHP Tutorial (funtion)
PHP Tutorial (funtion)
 
Web 8 | Introduction to PHP
Web 8 | Introduction to PHPWeb 8 | Introduction to PHP
Web 8 | Introduction to PHP
 
Php
PhpPhp
Php
 
Php (1)
Php (1)Php (1)
Php (1)
 
Ip lab
Ip labIp lab
Ip lab
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
 
4. Php MongoDB view_data
4. Php MongoDB view_data4. Php MongoDB view_data
4. Php MongoDB view_data
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHPQuick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Intro to php
Intro to phpIntro to php
Intro to php
 

Mehr von Nagarajan Kamalakannan

Mehr von Nagarajan Kamalakannan (18)

Network printer configuration
Network printer configurationNetwork printer configuration
Network printer configuration
 
Disable sharing Option for folder
Disable sharing Option for folderDisable sharing Option for folder
Disable sharing Option for folder
 
How to block folder sharing
How to block folder sharingHow to block folder sharing
How to block folder sharing
 
Folder sharing by command
Folder sharing by commandFolder sharing by command
Folder sharing by command
 
How to view shared folder by command
How to view shared folder by commandHow to view shared folder by command
How to view shared folder by command
 
How to find System uptime
How to find System uptimeHow to find System uptime
How to find System uptime
 
How to Hide a Folder in windows XP
How to Hide a Folder in windows XPHow to Hide a Folder in windows XP
How to Hide a Folder in windows XP
 
Enable administrator Account in windows 7
Enable administrator Account in windows 7Enable administrator Account in windows 7
Enable administrator Account in windows 7
 
Enable administrator Account in xp
Enable  administrator Account in xpEnable  administrator Account in xp
Enable administrator Account in xp
 
Windows 2003 server installation
Windows 2003 server installationWindows 2003 server installation
Windows 2003 server installation
 
Windows 7 installation ppt
Windows 7 installation pptWindows 7 installation ppt
Windows 7 installation ppt
 
Windows XP Professional Installation
Windows XP Professional  InstallationWindows XP Professional  Installation
Windows XP Professional Installation
 
Ubuntu 9.10 release By KLUG
Ubuntu 9.10 release By KLUGUbuntu 9.10 release By KLUG
Ubuntu 9.10 release By KLUG
 
Linuxcommands 091018105536-phpapp01
Linuxcommands 091018105536-phpapp01Linuxcommands 091018105536-phpapp01
Linuxcommands 091018105536-phpapp01
 
Gnucalendar2010(designed by klug)
Gnucalendar2010(designed by klug)Gnucalendar2010(designed by klug)
Gnucalendar2010(designed by klug)
 
Kanchilug
KanchilugKanchilug
Kanchilug
 
Open source-intro-by Nagaraj
Open source-intro-by NagarajOpen source-intro-by Nagaraj
Open source-intro-by Nagaraj
 
Ubuntu Linux 8.04 installation(By Nagarajan)
Ubuntu Linux 8.04 installation(By Nagarajan)Ubuntu Linux 8.04 installation(By Nagarajan)
Ubuntu Linux 8.04 installation(By Nagarajan)
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

Html , php, mysql intro

  • 1. HTML , PHP , MYSQL J.JAGAN., M.C.A KANCHI LINUX USER GROUP
  • 2. HTML <html> <html> <head> </head> <head>LINUX</head> <body> </body> <body>we are in </html> meeting</body> </html> Note: Save by extention “file_name.html”
  • 3. HTML <html> <body><form name=“a” action=“detail.php” method=post> NO:<input type=“text” name=“no” size=“10”> SEX: Male<input type=“radio” name=“sex” value=“male”> Female<input type=“radio” name=“sex” value=“female”> DEPARTMENT : <select name=“dept”> <option>MBA</option> <option>MCA</option> </select> </form> </body> </html>
  • 4. ATTRIBUTES <br> = give break <a href=“path”>link_name</a> = for link <table> </table> = create table <tr> </tr> = insert table row <td> </td> = table definition <h1,2,3,4></h1,2,3,4> = predefined font <img src=“path”> = insert image
  • 5. Php_manual.ico FIRST CODE <? php <html> echo “This is PHP”; <body> echo “<br>” ; <?php ?> echo “This is PHP”; echo “<br>”; ?> </body> </html>
  • 6. php <?php <?php $ variable_name; $a=10; echo “variable_name”; echo“$a”; ?> ?>
  • 7. php Loop: if: <?php <?php for($a=1;$a<=5;$a++) $a=20; { $b=10; echo “$a”; if($a>$b) } { ?> echo “A is greater”; } else { echo “B is greater; } ?>php
  • 8. Form with php <html> <body><form name=“a” action=“detail.php” method=post> NO:<input type=“text” name=“no” size=“10”> SEX: Male<input type=“radio” name=“sex” value=“male”> Female<input type=“radio” name=“sex” value=“female”> DEPARTMENT : <select name=“dept”> <option>MBA</option> <option>MCA</option> </select> </form> </body></html>
  • 10. mysql for insert <?php $conn = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error()); echo ("Connected successfully"); echo ( "<BR>"); $rs=mysql_select_db(“stud",$conn) or die('cannot access'); $sql=("insert into info values ('$_POST[no]','$_POST[sex]','$_POST[dept]‘ )”); $rs=mysql_query($sql,$conn) or die(“not connected"); echo("<br>"); echo("DATA IS INSERTED"); ?>
  • 11. For view <?php $link = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'."<BR>"; mysql_select_db(“stud”,$link) or die('cannot access'); $sql="select *from info";
  • 12. echo "<table table color=red border='10' bordercolor=green > <tr bgcolor=cyan> <TH>NO</TH> <TH>SEX</TH> <TH>DEPT</TH> </tr>"; while(($row=mysql_fetch_array($rs))) { echo("<tr>"); echo("<td>" . $row[“no"]. "</td>"); echo("<td>" . $row[“sex"] . "</td>"); echo("<td>" . $row[“dept"]."</td>"); echo("</tr>"); } echo("</table>");
  • 13. THANK YOU WILL SEE ON NEXT SUNDAY ANY QUIRES ?