Monday, 5 September 2016

If...else to check who is grater than

 If...else to check who is grater than

<?php
$x=10;
$y=0.90;
if($x>$y)
{
    echo "$x is grater";
}
else
{
    echo "$y is graeter";
}
?>

Sunday, 4 September 2016

How to apply while condition

Program of  while loop


<?php
$a = 5;
while ($a >= -3){
echo"the no is in decreasing order: $a <br>";
$a--;
}
$y = 1;
do {
echo"my name is anju : $y <br>";
$y++;
}
while ($y < 10);
?>

What is PHP

Definition of PHP

P - Pre
H - Hypertext
P - Processor


* It is also called   PRE HOME PAGE .

Different types of loop

* TYPE OF LOOP *

There are seven type of loop given below

  • *while loop
  • *Do while
  • *For loop
  • *If loop
  • *If else
  • *If else if....else
  • *Nested loop


Saturday, 3 September 2016

Thursday, 1 September 2016

how to print traingle in php

  <?php
    for($x=1; $x<=6 ;  $x++){

for($y=1; $y <= $x ;  $y++){

echo  "*" ;
}
echo "<br>" ;
}

?>

Tuesday, 30 August 2016

user registration form


ADMIN DETAILS!!!!!!!!

ADMIN REGISTRATION PAGE
           User Full Name::
 
             Father's Name::
         
             Mother's Name::
                
                    Gender::MF
             
                 Mobile no::
   
       Telephone no if any::
     
         Permanent address::
       
           Current address::
              
                  Pin code::
          
              Mark on body::
              
                       

how to develop menu and submenu

   *  how to develop menu and sub menu list  *


   <ul>
      <li>menu
        <li>menu1</li>
       <li>menu2</li>
       <li>menu3</li>
     </li>

  </ul>