SlideShare a Scribd company logo
1 of 13
Download to read offline
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

What's hot (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
 

Viewers also liked

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

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

More from Nagarajan Kamalakannan

More from 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)
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

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
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
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
 
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...
 
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...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

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 ?