Php Tags

Hello

Friday, 23 October 2015

Table Tag With Background Colour & Background Image!


<!Use of Table Tag With Background Colour & Background Image!!! >
<h3 align="center">Use of Table Tag With Background Colour & Background Image!!!</h3>
<table border="1" cellpadding="100">
<tr>
<td background="e:\hh\12.jpg" height="25" width="25">A ></td>
<td background="e:\hh\apple.jpg" height="25" width="25">B</td>
</tr>
<tr>
<td background ="e:\hh\11.jpg" width="25" height="25">C</td>
<td background="e:\hh\10.jpg" height="25 width="25">
D
</td>
</tr>
</table>
</center>
</body>

Monday, 21 September 2015

Frameset in Html



The <frameset> tag is not supported in HTML5.

HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns.

The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.
















HTML frames allow authors to present documents in multiple views, which may be individual windows or subwindows.










The Following is example of simple Three Frame Page






<!DOCTYPE html>






<html>






<frameset cols ="30%,40%,30%">


<frame src="e:\Students\main1.html">


<frame src="e:\Students\main2.html">


<frame src="e:\students\main3.html">


</frameset>






</html>










Save this file as frame1.html






Code Of main1.html is as follows






<!DOCTYPE html>


<html>


<head>


<title> Good Morning </title>


</head>


<body>


<p> Welcome To My Page </p>


<img src="e:\Students\1.jpg" height="200" width="200"/>


</body>


</html>










Code of Main2.html is as follows






<!DOCTYPE html>


<html>


<head>


<title> Good Morning </title>


</head>


<body>


<p> Welcome To My Page </p>


<img src="e:\Students\2.jpg" height="200" width="200"/>


</body>


</html>





Tuesday, 1 September 2015

Data Type In Php


The Foll data type are

Integer - Stores numbers without decimal points. The value ranges from -2,147,483,648 to +2,147,483,647 
Floating-point - Stores floating-point numbers 
String - Stores a set of characters. It is enclosed within single quotes or double quotes 
Boolean - Stores one of the two values, True or False 
Objects - Uses for any object reference 

Declares automatically at the time of initializing the variable 
As the value of the variable keeps on changing, the data type of the variable also keeps on changing 
denoted  with a dollar ($) symbol and then the variable name 
Declares with the data type of which the value will stored in it 
Variables are case sensitive in php
For example, a variable name, $var_name, is different from a variable name, $Var_Name 

<?php
   $num1 = 20;
   $num2 = 10;
   $tot = $num1 + $num2;
   
   print("$num1 + $num2 = $tot <

Friday, 28 August 2015

identifiers In php


nValid identifiers are:
Firstnum
Fnum
Firstnum
First18num
FirstNum 
age
salary


nInvalid identifiers are:
ufirst-num
u1num
ufirst num 
*num
_marks


ufirst&num

Php Simple Program

PHP is a server side scripting language,and a powerful tool for making dynamic and interactive
web pages.

Advantages of using PHP are:
Easy to learn, use, and implement
Free for access
Executes on any platform
Executes scripts from the command line and develops client-side GUI applications that can operate on any platform
Create a  directory Under xamapp \htdocs for example hema
C:\xampp\htdocs\Hema

Saves with an extension, .php under the /Hema directory
For example, display a simple text in the browser

http://localhost:9090/hema/page1.php in the address bar. The output appears, as shown in the figure

Index of /hema
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
[TXT] page1.php 2015-08-28 15:29 87
[TXT] page2.php 2015-08-28 15:45 57

Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31 Server at localhost Port 9090

For example, display a simple text  Good Morning in the browser

<!DOCTYPE html>
<html>
<body>
<?php
echo "Good  Morning ";
?>
</body>
</html>



For example, You want to  show the location of the client

<?php
header(“Location: http://www.msn.com”);
exit;
?>