SlideShare a Scribd company logo
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 ?

More Related Content

What's hot (17)

Php mysql
Php mysql
Manish Jain
 
Php talk
Php talk
Jamil Ramsey
 
Using PHP
Using PHP
Mark Casias
 
RESTful web services
RESTful web services
Tudor Constantin
 
Blog Hacks 2011
Blog Hacks 2011
Yusuke Wada
 
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel
Razvan Raducanu, PhD
 
Session8
Session8
สอนทำโปรเจคจบ วิทคอมไอทีคอมธุรกิจ
 
Php Tutorial | Introduction Demo | Basics
Php Tutorial | Introduction Demo | Basics
Shubham Kumar Singh
 
Php101
Php101
Ömer Taşkın
 
Php hacku
Php hacku
Tom Praison Praison
 
Ben Bridts - $ aws help
Ben Bridts - $ aws help
AWSCOMSUM
 
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
Al-Mamun Sarkar
 
Session3
Session3
สอนทำโปรเจคจบ วิทคอมไอทีคอมธุรกิจ
 
Micropage in microtime using microframework
Micropage in microtime using microframework
Radek Benkel
 
wget.pl
wget.pl
Yasuhiro Onishi
 
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
Al-Mamun Sarkar
 
SULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programs
SULTHAN BASHA
 

Viewers also liked (7)

Php essentials
Php essentials
sagaroceanic11
 
Introduction to php web programming - get and post
Introduction to php web programming - get and post
baabtra.com - No. 1 supplier of quality freshers
 
Php & mysql course syllabus
Php & mysql course syllabus
Papitha Velumani
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
Guru Ji
 
Php mysql ppt
Php mysql ppt
Karmatechnologies Pvt. Ltd.
 
PHP Powerpoint -- Teach PHP with this
PHP Powerpoint -- Teach PHP with this
Ian Macali
 
Php Presentation
Php Presentation
Manish Bothra
 
Ad

Similar to Html , php, mysql intro (20)

PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
Ismail Mukiibi
 
Introduction to PHP
Introduction to PHP
Collaboration Technologies
 
Storytelling By Numbers
Storytelling By Numbers
Michael King
 
Mike King - Storytelling by Numbers MKTFEST 2014
Mike King - Storytelling by Numbers MKTFEST 2014
Marketing Festival
 
Tutorial_4_PHP
Tutorial_4_PHP
tutorialsruby
 
Tutorial_4_PHP
Tutorial_4_PHP
tutorialsruby
 
Tutorial_4_PHP
Tutorial_4_PHP
tutorialsruby
 
Tutorial_4_PHP
Tutorial_4_PHP
tutorialsruby
 
GettingStartedWithPHP
GettingStartedWithPHP
Nat Weerawan
 
Grok Drupal (7) Theming
Grok Drupal (7) Theming
PINGV
 
PHP Tutorial (funtion)
PHP Tutorial (funtion)
Tinnakorn Puttha
 
Web 8 | Introduction to PHP
Web 8 | Introduction to PHP
Mohammad Imam Hossain
 
Php
Php
Linh Tran
 
php is the most important programming language
php is the most important programming language
padmanabanm47
 
Php (1)
Php (1)
pinalsadiwala
 
Ip lab
Ip lab
Ema Dunphy
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
 
PHP-08-POST-Redirect-Authn-Slideshare.ppt
PHP-08-POST-Redirect-Authn-Slideshare.ppt
chelmisillie
 
Storytelling By Numbers
Storytelling By Numbers
Michael King
 
Mike King - Storytelling by Numbers MKTFEST 2014
Mike King - Storytelling by Numbers MKTFEST 2014
Marketing Festival
 
GettingStartedWithPHP
GettingStartedWithPHP
Nat Weerawan
 
Grok Drupal (7) Theming
Grok Drupal (7) Theming
PINGV
 
php is the most important programming language
php is the most important programming language
padmanabanm47
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
 
PHP-08-POST-Redirect-Authn-Slideshare.ppt
PHP-08-POST-Redirect-Authn-Slideshare.ppt
chelmisillie
 
Ad

More from Nagarajan Kamalakannan (18)

Network printer configuration
Network printer configuration
Nagarajan Kamalakannan
 
Disable sharing Option for folder
Disable sharing Option for folder
Nagarajan Kamalakannan
 
How to block folder sharing
How to block folder sharing
Nagarajan Kamalakannan
 
Folder sharing by command
Folder sharing by command
Nagarajan Kamalakannan
 
How to view shared folder by command
How to view shared folder by command
Nagarajan Kamalakannan
 
How to find System uptime
How to find System uptime
Nagarajan Kamalakannan
 
How to Hide a Folder in windows XP
How to Hide a Folder in windows XP
Nagarajan Kamalakannan
 
Enable administrator Account in windows 7
Enable administrator Account in windows 7
Nagarajan Kamalakannan
 
Enable administrator Account in xp
Enable administrator Account in xp
Nagarajan Kamalakannan
 
Windows 2003 server installation
Windows 2003 server installation
Nagarajan Kamalakannan
 
Windows 7 installation ppt
Windows 7 installation ppt
Nagarajan Kamalakannan
 
Windows XP Professional Installation
Windows XP Professional Installation
Nagarajan Kamalakannan
 
Ubuntu 9.10 release By KLUG
Ubuntu 9.10 release By KLUG
Nagarajan Kamalakannan
 
Linuxcommands 091018105536-phpapp01
Linuxcommands 091018105536-phpapp01
Nagarajan Kamalakannan
 
Gnucalendar2010(designed by klug)
Gnucalendar2010(designed by klug)
Nagarajan Kamalakannan
 
Open source-intro-by Nagaraj
Open source-intro-by Nagaraj
Nagarajan Kamalakannan
 
Ubuntu Linux 8.04 installation(By Nagarajan)
Ubuntu Linux 8.04 installation(By Nagarajan)
Nagarajan Kamalakannan
 
Enable administrator Account in windows 7
Enable administrator Account in windows 7
Nagarajan Kamalakannan
 
Ubuntu Linux 8.04 installation(By Nagarajan)
Ubuntu Linux 8.04 installation(By Nagarajan)
Nagarajan Kamalakannan
 

Recently uploaded (20)

PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Pragya - UEM Kolkata Quiz Club
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Sustainable Innovation with Immersive Learning
Sustainable Innovation with Immersive Learning
Leonel Morgado
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Battle of Bookworms 2025 - U25 Literature Quiz by Pragya
Pragya - UEM Kolkata Quiz Club
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Sustainable Innovation with Immersive Learning
Sustainable Innovation with Immersive Learning
Leonel Morgado
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Basic English for Communication - Dr Hj Euis Eti Rohaeti Mpd
Restu Bias Primandhika
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 

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 ?