SlideShare a Scribd company logo
1 of 10
Download to read offline
PHP PRECTICAL
1HEMANG DESAI
<?php
$server="localhost";
$user="root";
$password="";
$database="demo";
mysql_connect($server,$user,$password) or die("Not Connected");
mysql_select_db($database) or die("Not Selected");
?>
<?php
session_start();
if ($_SESSION['login']<>"")
{
header("location:addcat.php");
}
?>
<?php
if (isset($_POST['btnlogin']))
{
include($path.'conn.php');
Login File (index.php)
Connection File (conn.php)
PHP PRECTICAL
2HEMANG DESAI
$str="select * from login where username='".$_POST['txtusername']."' and
password='".$_POST['txtpassword']."'";
$res=mysql_query($str);
if (mysql_num_rows($res)>0)
{
$_SESSION['login']=$_POST['txtusername'];
header("location:addcat.php");
}
else
{
$msg="try again";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body bgcolor="#CCCCCC">
<center>
<form id="form1" name="form1" method="post">
<table width="345" style="margin-top:250px;">
<tr>
<th scope="row">Username</th>
<td><input type="text" name="txtusername"/></td>
</tr>
<tr>
<th scope="row">Password</th>
<td><input type="password" name="txtpassword"/></td>
</tr>
<tr>
<th colspan="2" scope="row"><input type="submit" name="btnlogin" value="Login" /></th>
</tr>
<tr align="center">
<td colspan="2" style="color:#F00"><?php echo $msg; ?></td>
</tr>
</table>
</form>
</center>
</body>
</html>
PHP PRECTICAL
3HEMANG DESAI
<?php
session_start();
?>
<?php
if (isset($_POST['logout']))
{
session_destroy();
header("location:index.php");
}
?>
<div class="header">
<div class="header_left">
<h1>Admin</h1>
</div>
<div class="header_right">
<?php
if (isset($_POST['logout']))
{
header("location: index.php");
}
?>
<form name="frmlogout" method="post">
<? Php echo “Wellcome: “. $_SESSION [‘login’]?> <input type="submit" name="logout"
value="Logout" />
</form>
</div>
</div>
<div class="maincontain_left">
<a href="addcat.php">
<div class="menu">
Add Category
</div>
</a>
</div>
<div class="footer">
<div class="footer_left">
CopyRight &copy; By HDTC.
</div>
<div class="footer_right">
Devloped By Dax Sorathia.
Footer File (footer.php)
Menu File (menu.php)
Header File (header.php)
PHP PRECTICAL
4HEMANG DESAI
</div>
</div>
<?php
session_start();
if ($_SESSION['login']=="")
{
header("location:index.php");
}
?>
<?php
if (isset($_GET[del]))
{
include('conn.php');
$str="delete from category where id='$_GET[del]'";
mysql_query($str) or die("Not Perform");
}
?>
<?php
if (isset($_POST['update']))
{
Category File (category.php)
Footer File (footer.php)
PHP PRECTICAL
5HEMANG DESAI
include('conn.php');
$catname=$_POST['txtcategoryname'];
$imgurl=$_FILES['image']['name'];
$image_tmp = $_FILES['image']['tmp_name'];
move_uploaded_file($image_tmp,"images/$imgurl");
$hid=$_POST['hid'];
$str="update category set categoryname='$catname',categoeyimage='$imgurl' where
id='$hid'";
mysql_query($str) or die("Not Perform");
header("location:addcat.php");
}
?>
<?php
if (isset($_GET[up]))
{
include('conn.php');
$str="select * from category where id='$_GET[up]'";
$res=mysql_query($str) or die("Not Perform");
while ($row=mysql_fetch_array($res))
{
$catname=$row[categoryname];
$himg=$row[categoeyimage];
$hid=$row[id];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="main">
<?php
include("header.php");
?>
<div class="maincontain">
<?php
include("menu.php");
?>
<div class="maincontain_right">
PHP PRECTICAL
6HEMANG DESAI
<form action="addcat.php" method="post" enctype="multipart/form-data"
name="form1" id="form1" style="padding-top:15px">
<table>
<tr>
<td>Cagegory Name</td>
<td>:</td>
<td><input type="text" name="txtcategoryname"
value="<?php echo $catname; ?>"/></td>
</tr>
<tr>
<td>Category Image</td>
<td>:</td>
<td><input type="file" name="image" value="<?php echo
$himg; ?>"/></td>
</tr>
<input name="hid" type="hidden" value="<?php echo $hid;?>" />
<tr align="center">
<?php
if (isset($_GET[up]))
{
echo "<td colspan='3'>"."<input type='submit'
value='Update' name='update' />"."</td>";
}
else
{
echo "<td colspan='3'>"."<input type='submit'
name='btnadd' value='Add' />"."</td>";
}
?>
<?php
if (isset($_POST['btnadd']))
{
include('conn.php');
$catname=$_POST['txtcategoryname'];
$imgurl=$_FILES['image']['name'];
$image_tmp = $_FILES['image']['tmp_name'];
move_uploaded_file($image_tmp,"images/$imgurl");
$str="insert into category values
(0,'$catname','$imgurl')";
mysql_query($str) or die("Not Perform");
}
?>
</tr>
</table>
PHP PRECTICAL
7HEMANG DESAI
<table style="margin-top:5px;margin-left:5px;" border="1px"
cellpadding="3px;">
<tr>
<th>Category Name</th>
<th>Category Image</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<?php
include('conn.php');
$str="select * from category";
$res=mysql_query($str);
while ($row=mysql_fetch_array($res))
{
echo "<tr>";
echo "<td>".$row[categoryname]."</td>";
echo "<td>"."<img src='images/".$row[categoeyimage]."' height='40px' width='70px'>"."</td>";
echo "<td>"."<a href='addcat.php?up=$row[id]'>Edit</a>"."</td>";
echo "<td>"."<a href='addcat.php?del=$row[id]'>Delete</a>"."</td>";
echo "</tr>";
}
?>
</table>
</form>
</div>
</div>
<?php
include("footer.php");
?>
</div>
</body>
</html>
@charset "utf-8";
/* CSS Document */
*{
margin:0px;
}
.main{
background-color:#333;
}
.header{
height:60px;
CSS File (style.css)
PHP PRECTICAL
8HEMANG DESAI
width:inherit;
background-color:#FC3;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
color:#333;
}
.header_left{
width:300px;
height:50px;
/*background-color:#999;*/
float:left;
padding-top:8px;
padding-left:20px;
}
.header_left h1{
text-shadow:#fff 1px 1px 1px 1px;
}
.header_center h1{
text-shadow:#fff 1px 1px 1px 1px;
}
.header_center{
width:300px;
height:50px;
/*background-color:#999;*/
float:left;
margin-left:230px;
text-align:center;
padding-top:8px;
}
.header_right{
width:100px;
height:40px;
/*background-color:#999;*/
float:right;
text-align:right;
padding-top:20px;
padding-right:20px;
}
.footer{
height:30px;
width:inherit;
background-color:#FC3;
padding-top:13px;
}
.footer_left{
height:30px;
PHP PRECTICAL
9HEMANG DESAI
width:300px;
text-align:left;
padding-left:10px;
float:left;
font-size:17px;
}
.footer_right{
height:30px;
width:300px;
text-align:right;
padding-right:10px;
float:right;
font-size:17px;
}
.maincontain_left{
margin-left:5px;
height:543px;
width:257px;
background-color:#CCC;
float:left;
margin-top:5px;
border-radius:7px;
}
.menu{
height:30px;
width:230px;
margin-left:12px;
background-color:#9CF;
margin-top:10px;
border-radius:7px;
text-align:center;
padding-top:3px;
}
.maincontain_left a{
color:#FFF;
font-size:20px;
text-decoration:none;
text-shadow:#F00 1px 1px;
}
.maincontain_right{
margin-right:5px;
height:543px;
width:1070px;
background-color:#CCC;
float:right;
PHP PRECTICAL
10HEMANG DESAI
margin-top:5px;
border-radius:7px;
}
.maincontain{
height:553px;
width:inherit;
border-radius:10px;
}
[Note: You must create Image Store Folder (images) In Your Project/Website Folder
(admin/client/website)]

More Related Content

What's hot

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
 
hotel managment
hotel managmenthotel managment
hotel managment
Melk Biks
 

What's hot (20)

Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
 
Karan - form search
Karan - form searchKaran - form search
Karan - form search
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
wget.pl
wget.plwget.pl
wget.pl
 
Open Source Search: An Analysis
Open Source Search: An AnalysisOpen Source Search: An Analysis
Open Source Search: An Analysis
 
次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介次世代版 PowerCMS 開発プロジェクトのご紹介
次世代版 PowerCMS 開発プロジェクトのご紹介
 
PowerCMS X
PowerCMS XPowerCMS X
PowerCMS X
 
15. CodeIgniter editarea inregistrarilor
15. CodeIgniter editarea inregistrarilor15. CodeIgniter editarea inregistrarilor
15. CodeIgniter editarea inregistrarilor
 
Check username availability with vue.js and PHP
Check username availability with vue.js and PHPCheck username availability with vue.js and PHP
Check username availability with vue.js and PHP
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
 
Karan chanana
Karan chananaKaran chanana
Karan chanana
 
hotel managment
hotel managmenthotel managment
hotel managment
 
CakeFest 2013 keynote
CakeFest 2013 keynoteCakeFest 2013 keynote
CakeFest 2013 keynote
 
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
 
21. CodeIgniter search
21. CodeIgniter search21. CodeIgniter search
21. CodeIgniter search
 
Bag Of Tricks From Iusethis
Bag Of Tricks From IusethisBag Of Tricks From Iusethis
Bag Of Tricks From Iusethis
 
Xmpp prebind
Xmpp prebindXmpp prebind
Xmpp prebind
 
Inc
IncInc
Inc
 
Let's write secure drupal code!
Let's write secure drupal code!Let's write secure drupal code!
Let's write secure drupal code!
 
PhoneGap: Local Storage
PhoneGap: Local StoragePhoneGap: Local Storage
PhoneGap: Local Storage
 

Viewers also liked

27916767 manual-smurd
27916767 manual-smurd27916767 manual-smurd
27916767 manual-smurd
idoraancus
 
insights-servfile (5)
insights-servfile (5)insights-servfile (5)
insights-servfile (5)
Dawn Murden
 
Project Management Paper
Project Management PaperProject Management Paper
Project Management Paper
Pam Simpson
 
Pest Exclusion and its Role in Integrated Pest Management
Pest Exclusion and its Role in Integrated Pest ManagementPest Exclusion and its Role in Integrated Pest Management
Pest Exclusion and its Role in Integrated Pest Management
Phillip S Coles, MBA
 
Library-short version-arabic and english
Library-short version-arabic and englishLibrary-short version-arabic and english
Library-short version-arabic and english
Kaspars Klavins
 

Viewers also liked (17)

Taylor Anderson PPP 4.4
Taylor Anderson PPP 4.4Taylor Anderson PPP 4.4
Taylor Anderson PPP 4.4
 
Asiakasanalytiikka
AsiakasanalytiikkaAsiakasanalytiikka
Asiakasanalytiikka
 
27916767 manual-smurd
27916767 manual-smurd27916767 manual-smurd
27916767 manual-smurd
 
Migrasi disket ke flashdisk
Migrasi disket ke flashdiskMigrasi disket ke flashdisk
Migrasi disket ke flashdisk
 
Relacionamento descartavel
Relacionamento descartavelRelacionamento descartavel
Relacionamento descartavel
 
Session 2
Session 2Session 2
Session 2
 
Doc2
Doc2Doc2
Doc2
 
Jessica Bari -Successful Life Coach in Miami
Jessica Bari -Successful Life Coach in MiamiJessica Bari -Successful Life Coach in Miami
Jessica Bari -Successful Life Coach in Miami
 
Evelyns Resume10
Evelyns Resume10Evelyns Resume10
Evelyns Resume10
 
insights-servfile (5)
insights-servfile (5)insights-servfile (5)
insights-servfile (5)
 
Project Management Paper
Project Management PaperProject Management Paper
Project Management Paper
 
phokkrong nateedangsakul No.14 M.1/13
phokkrong nateedangsakul No.14 M.1/13phokkrong nateedangsakul No.14 M.1/13
phokkrong nateedangsakul No.14 M.1/13
 
Hydrorock powerpoint presentation deutsch
Hydrorock powerpoint presentation deutschHydrorock powerpoint presentation deutsch
Hydrorock powerpoint presentation deutsch
 
Animasyon eklem
Animasyon eklemAnimasyon eklem
Animasyon eklem
 
Katalog - produkty pro kosmetiku Siberian Health
Katalog - produkty pro kosmetiku Siberian HealthKatalog - produkty pro kosmetiku Siberian Health
Katalog - produkty pro kosmetiku Siberian Health
 
Pest Exclusion and its Role in Integrated Pest Management
Pest Exclusion and its Role in Integrated Pest ManagementPest Exclusion and its Role in Integrated Pest Management
Pest Exclusion and its Role in Integrated Pest Management
 
Library-short version-arabic and english
Library-short version-arabic and englishLibrary-short version-arabic and english
Library-short version-arabic and english
 

Similar to Php (1)

Propel sfugmd
Propel sfugmdPropel sfugmd
Propel sfugmd
iKlaus
 
Creating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login SystemCreating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login System
Azharul Haque Shohan
 
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pmDBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
Sheeju Alex
 

Similar to Php (1) (20)

Php
PhpPhp
Php
 
Insertcustomer
InsertcustomerInsertcustomer
Insertcustomer
 
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDESPHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
 
Php 101: PDO
Php 101: PDOPhp 101: PDO
Php 101: PDO
 
My shell
My shellMy shell
My shell
 
Separation of concerns - DPC12
Separation of concerns - DPC12Separation of concerns - DPC12
Separation of concerns - DPC12
 
HirshHorn theme: how I created it
HirshHorn theme: how I created itHirshHorn theme: how I created it
HirshHorn theme: how I created it
 
Diving into php
Diving into phpDiving into php
Diving into php
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
 
Propel sfugmd
Propel sfugmdPropel sfugmd
Propel sfugmd
 
Login and Registration form using oop in php
Login and Registration form using oop in phpLogin and Registration form using oop in php
Login and Registration form using oop in php
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 
Creating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login SystemCreating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login System
 
Coding part
Coding partCoding part
Coding part
 
PHP Tutorial (funtion)
PHP Tutorial (funtion)PHP Tutorial (funtion)
PHP Tutorial (funtion)
 
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL SuperpowersPostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
 
Add loop shortcode
Add loop shortcodeAdd loop shortcode
Add loop shortcode
 
Karan chanan
Karan chananKaran chanan
Karan chanan
 
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pmDBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
 

Php (1)

  • 1. PHP PRECTICAL 1HEMANG DESAI <?php $server="localhost"; $user="root"; $password=""; $database="demo"; mysql_connect($server,$user,$password) or die("Not Connected"); mysql_select_db($database) or die("Not Selected"); ?> <?php session_start(); if ($_SESSION['login']<>"") { header("location:addcat.php"); } ?> <?php if (isset($_POST['btnlogin'])) { include($path.'conn.php'); Login File (index.php) Connection File (conn.php)
  • 2. PHP PRECTICAL 2HEMANG DESAI $str="select * from login where username='".$_POST['txtusername']."' and password='".$_POST['txtpassword']."'"; $res=mysql_query($str); if (mysql_num_rows($res)>0) { $_SESSION['login']=$_POST['txtusername']; header("location:addcat.php"); } else { $msg="try again"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body bgcolor="#CCCCCC"> <center> <form id="form1" name="form1" method="post"> <table width="345" style="margin-top:250px;"> <tr> <th scope="row">Username</th> <td><input type="text" name="txtusername"/></td> </tr> <tr> <th scope="row">Password</th> <td><input type="password" name="txtpassword"/></td> </tr> <tr> <th colspan="2" scope="row"><input type="submit" name="btnlogin" value="Login" /></th> </tr> <tr align="center"> <td colspan="2" style="color:#F00"><?php echo $msg; ?></td> </tr> </table> </form> </center> </body> </html>
  • 3. PHP PRECTICAL 3HEMANG DESAI <?php session_start(); ?> <?php if (isset($_POST['logout'])) { session_destroy(); header("location:index.php"); } ?> <div class="header"> <div class="header_left"> <h1>Admin</h1> </div> <div class="header_right"> <?php if (isset($_POST['logout'])) { header("location: index.php"); } ?> <form name="frmlogout" method="post"> <? Php echo “Wellcome: “. $_SESSION [‘login’]?> <input type="submit" name="logout" value="Logout" /> </form> </div> </div> <div class="maincontain_left"> <a href="addcat.php"> <div class="menu"> Add Category </div> </a> </div> <div class="footer"> <div class="footer_left"> CopyRight &copy; By HDTC. </div> <div class="footer_right"> Devloped By Dax Sorathia. Footer File (footer.php) Menu File (menu.php) Header File (header.php)
  • 4. PHP PRECTICAL 4HEMANG DESAI </div> </div> <?php session_start(); if ($_SESSION['login']=="") { header("location:index.php"); } ?> <?php if (isset($_GET[del])) { include('conn.php'); $str="delete from category where id='$_GET[del]'"; mysql_query($str) or die("Not Perform"); } ?> <?php if (isset($_POST['update'])) { Category File (category.php) Footer File (footer.php)
  • 5. PHP PRECTICAL 5HEMANG DESAI include('conn.php'); $catname=$_POST['txtcategoryname']; $imgurl=$_FILES['image']['name']; $image_tmp = $_FILES['image']['tmp_name']; move_uploaded_file($image_tmp,"images/$imgurl"); $hid=$_POST['hid']; $str="update category set categoryname='$catname',categoeyimage='$imgurl' where id='$hid'"; mysql_query($str) or die("Not Perform"); header("location:addcat.php"); } ?> <?php if (isset($_GET[up])) { include('conn.php'); $str="select * from category where id='$_GET[up]'"; $res=mysql_query($str) or die("Not Perform"); while ($row=mysql_fetch_array($res)) { $catname=$row[categoryname]; $himg=$row[categoeyimage]; $hid=$row[id]; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="style.css" type="text/css" rel="stylesheet" /> </head> <body> <div class="main"> <?php include("header.php"); ?> <div class="maincontain"> <?php include("menu.php"); ?> <div class="maincontain_right">
  • 6. PHP PRECTICAL 6HEMANG DESAI <form action="addcat.php" method="post" enctype="multipart/form-data" name="form1" id="form1" style="padding-top:15px"> <table> <tr> <td>Cagegory Name</td> <td>:</td> <td><input type="text" name="txtcategoryname" value="<?php echo $catname; ?>"/></td> </tr> <tr> <td>Category Image</td> <td>:</td> <td><input type="file" name="image" value="<?php echo $himg; ?>"/></td> </tr> <input name="hid" type="hidden" value="<?php echo $hid;?>" /> <tr align="center"> <?php if (isset($_GET[up])) { echo "<td colspan='3'>"."<input type='submit' value='Update' name='update' />"."</td>"; } else { echo "<td colspan='3'>"."<input type='submit' name='btnadd' value='Add' />"."</td>"; } ?> <?php if (isset($_POST['btnadd'])) { include('conn.php'); $catname=$_POST['txtcategoryname']; $imgurl=$_FILES['image']['name']; $image_tmp = $_FILES['image']['tmp_name']; move_uploaded_file($image_tmp,"images/$imgurl"); $str="insert into category values (0,'$catname','$imgurl')"; mysql_query($str) or die("Not Perform"); } ?> </tr> </table>
  • 7. PHP PRECTICAL 7HEMANG DESAI <table style="margin-top:5px;margin-left:5px;" border="1px" cellpadding="3px;"> <tr> <th>Category Name</th> <th>Category Image</th> <th>Edit</th> <th>Delete</th> </tr> <?php include('conn.php'); $str="select * from category"; $res=mysql_query($str); while ($row=mysql_fetch_array($res)) { echo "<tr>"; echo "<td>".$row[categoryname]."</td>"; echo "<td>"."<img src='images/".$row[categoeyimage]."' height='40px' width='70px'>"."</td>"; echo "<td>"."<a href='addcat.php?up=$row[id]'>Edit</a>"."</td>"; echo "<td>"."<a href='addcat.php?del=$row[id]'>Delete</a>"."</td>"; echo "</tr>"; } ?> </table> </form> </div> </div> <?php include("footer.php"); ?> </div> </body> </html> @charset "utf-8"; /* CSS Document */ *{ margin:0px; } .main{ background-color:#333; } .header{ height:60px; CSS File (style.css)
  • 8. PHP PRECTICAL 8HEMANG DESAI width:inherit; background-color:#FC3; font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; color:#333; } .header_left{ width:300px; height:50px; /*background-color:#999;*/ float:left; padding-top:8px; padding-left:20px; } .header_left h1{ text-shadow:#fff 1px 1px 1px 1px; } .header_center h1{ text-shadow:#fff 1px 1px 1px 1px; } .header_center{ width:300px; height:50px; /*background-color:#999;*/ float:left; margin-left:230px; text-align:center; padding-top:8px; } .header_right{ width:100px; height:40px; /*background-color:#999;*/ float:right; text-align:right; padding-top:20px; padding-right:20px; } .footer{ height:30px; width:inherit; background-color:#FC3; padding-top:13px; } .footer_left{ height:30px;
  • 10. PHP PRECTICAL 10HEMANG DESAI margin-top:5px; border-radius:7px; } .maincontain{ height:553px; width:inherit; border-radius:10px; } [Note: You must create Image Store Folder (images) In Your Project/Website Folder (admin/client/website)]