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

PDF
C A S Sample Php
PDF
Pemrograman Web 9 - Input Form DB dan Session
PPT
Php with my sql
PPT
Introducation to php for beginners
PDF
Pemrograman Web 8 - MySQL
PDF
Mojolicious
PPTX
Phphacku iitd
PPTX
PHP for hacks
C A S Sample Php
Pemrograman Web 9 - Input Form DB dan Session
Php with my sql
Introducation to php for beginners
Pemrograman Web 8 - MySQL
Mojolicious
Phphacku iitd
PHP for hacks

What's hot (17)

PPT
Php mysql
PPTX
Php talk
KEY
Using PHP
PDF
RESTful web services
PDF
Blog Hacks 2011
PPTX
16.mysql stored procedures in laravel
PPT
Php Tutorial | Introduction Demo | Basics
PDF
PPTX
PDF
Ben Bridts - $ aws help
PPTX
PHP Lecture 4 - Working with form, GET and Post Methods
PDF
Micropage in microtime using microframework
PDF
PPTX
Database Management - Lecture 4 - PHP and Mysql
PDF
SULTHAN's - PHP MySQL programs
Php mysql
Php talk
Using PHP
RESTful web services
Blog Hacks 2011
16.mysql stored procedures in laravel
Php Tutorial | Introduction Demo | Basics
Ben Bridts - $ aws help
PHP Lecture 4 - Working with form, GET and Post Methods
Micropage in microtime using microframework
Database Management - Lecture 4 - PHP and Mysql
SULTHAN's - PHP MySQL programs
Ad

Viewers also liked (7)

PPT
Php essentials
PDF
Introduction to php web programming - get and post
PDF
Php & mysql course syllabus
PDF
CBSE XII Database Concepts And MySQL Presentation
PPT
PPTX
PHP Powerpoint -- Teach PHP with this
PPT
Php Presentation
Php essentials
Introduction to php web programming - get and post
Php & mysql course syllabus
CBSE XII Database Concepts And MySQL Presentation
PHP Powerpoint -- Teach PHP with this
Php Presentation
Ad

Similar to Html , php, mysql intro (20)

PPT
PHP POWERPOINT SLIDES
PPTX
Introduction to PHP
PDF
Storytelling By Numbers
PDF
Mike King - Storytelling by Numbers MKTFEST 2014
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
PDF
Tutorial_4_PHP
KEY
GettingStartedWithPHP
PDF
Grok Drupal (7) Theming
PPT
PHP Tutorial (funtion)
PDF
Web 8 | Introduction to PHP
DOC
PPTX
php is the most important programming language
PDF
Php (1)
TXT
Ip lab
DOC
Ex[1].3 php db connectivity
PPTX
4. Php MongoDB view_data
PPTX
Quick beginner to Lower-Advanced guide/tutorial in PHP
PPT
PHP-08-POST-Redirect-Authn-Slideshare.ppt
PHP POWERPOINT SLIDES
Introduction to PHP
Storytelling By Numbers
Mike King - Storytelling by Numbers MKTFEST 2014
Tutorial_4_PHP
Tutorial_4_PHP
Tutorial_4_PHP
Tutorial_4_PHP
GettingStartedWithPHP
Grok Drupal (7) Theming
PHP Tutorial (funtion)
Web 8 | Introduction to PHP
php is the most important programming language
Php (1)
Ip lab
Ex[1].3 php db connectivity
4. Php MongoDB view_data
Quick beginner to Lower-Advanced guide/tutorial in PHP
PHP-08-POST-Redirect-Authn-Slideshare.ppt

More from Nagarajan Kamalakannan (18)

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

Recently uploaded (20)

PDF
M.Tech in Aerospace Engineering | BIT Mesra
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
HVAC Specification 2024 according to central public works department
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
IP : I ; Unit I : Preformulation Studies
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PDF
semiconductor packaging in vlsi design fab
PDF
Farming Based Livelihood Systems English Notes
PPTX
Climate Change and Its Global Impact.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
plant tissues class 6-7 mcqs chatgpt.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
INSTRUMENT AND INSTRUMENTATION PRESENTATION
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
PowerPoint for Climate Change by T.T.pdf
M.Tech in Aerospace Engineering | BIT Mesra
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
HVAC Specification 2024 according to central public works department
Climate and Adaptation MCQs class 7 from chatgpt
IP : I ; Unit I : Preformulation Studies
Literature_Review_methods_ BRACU_MKT426 course material
semiconductor packaging in vlsi design fab
Farming Based Livelihood Systems English Notes
Climate Change and Its Global Impact.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
plant tissues class 6-7 mcqs chatgpt.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
INSTRUMENT AND INSTRUMENTATION PRESENTATION
My India Quiz Book_20210205121199924.pdf
Everyday Spelling and Grammar by Kathi Wyldeck
FORM 1 BIOLOGY MIND MAPS and their schemes
PowerPoint for Climate Change by T.T.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 ?