Friday, 11 December 2015

Simple project to understand about register a user account , user login & admin login & admin managing user account:

Simple project    to understand   about register a  user   account , user login  & admin login & admin managing user account:

Step 1:

Create  two table first userrecord for user and  adminlogin  for  admin:

Create table userrecord
(id  int primary key auto_increment,
namevarchar(200),
contactvarchar(200),
emailvarchar(200),
password  varchar(200)
);

Create table  adminlogin
(idint primary key auto_increment,
usernamevarchar(200),
passwordvarchar(200)
);

Step 2:
(a)write code for  connect.php  file:

<?php
$con=mysqli_connect("localhost","root","","prakash1");


if ($con)
{
echo "connected";
}
else
{
echo "not connected";
}



?>
(a)write code for register.html:

<html>
<head>
<title>user registration</title>
</head>
<body>
<form action="user.php" method="post">
Name<input type="text" name="name" placeholder="enter user name"><br>
Email<input type="text" name="email" placeholder="enter user email"><br>
Contact<input type="text" name="contact" placeholder="enter user contact"><br>
Password<input type="password" name="password" placeholder="enter user password"><br>
<input type="submit" name="button" value="sign up">
</form>
</body>
</html>



(b)write code for  user.php  :
<?php
include('connect.php');
$n=$_POST['name'];
$e=$_POST['email'];
$c=$_POST['contact'];
$p=$_POST['password'];

$sql="select * from userrecord where email='$e'";

$result=mysqli_query($con,$sql);
$num=mysqli_num_rows($result);
if($num>0)
{
echo "<font color=red>email id is already use please use another email id</font> ";
}
else
{
 $sql1="insert into userrecord(name,email,contact,password)values('$n','$e','$c','$p')";
 $res=mysqli_query($con,$sql1);
 if($res)
 {
echo"<font color=red>user successfully registered</font>";
 }
 else
 {
echo "not registered";

 }


}






?>


Step 3:

(a)write code for  userlogin.html:

<html>
<head>
<title>user login</title>
</head>
<body>
<form action="userlogin.php" method="post">

<label>User Email id</label><br>
<input type="text" name="email" placeholder="user email id">
<br></br>

<label>Password</label><br>
<input type="password" name="password" placeholder="user password">
<br></br>

<input type="submit" name="button" value="userlogin">
</form>

</body>
</html>

(b)write code for    userlogin.php :

<?php
include('connect.php');
$u=$_POST['email'];
$p=$_POST['password'];

$sql="select email,password from userrecord where email='$u' AND password='$p'"; //matching email id and password

$res=mysqli_query($con,$sql); //exceute

$num=mysqli_num_rows($res); //counting rercords of $res
if ($num>0)
{
session_start();
$_SESSION['om']=$u; //storing email id in session session set by session name om
header('location:userwelcome.php');
}
else
{
echo "invalid login";

}




?>

( c) now write code for  userwelcome.php  :


<?php
session_start();
if(!isset($_SESSION['om']))
{
header('location:usererror.php');
}
?>
<html>
<head>
<title>Admin welcome Page</title>

</head>
<body>
<ul>
<li><a href=changeprofile.php>Change Profile</a></li>
<li><a href=changepassword.php>Change Password</a></li>
<li><a href=userlogout.php>Logout</a></li>

</ul>
<h1>welcome<h1>
<?php
echo "welcome".$_SESSION['om'];

include('connect.php');

$email=$_SESSION['om'];

$sql="select * from userrecord where email='$email'";

$res=mysqli_query($con,$sql);

while($row=mysqli_fetch_array($res))
{
echo "<h1>user details<h1>";
echo "id=".$row['id'];

echo '<br>';
echo "Name=".$row['name'];

echo '<br>';
echo "email=".$row['email'];

echo '<br>';
echo "contact=".$row['contact'];

echo '<br>';
echo "password=".$row['password'];



}

?>

</body>
</html>

output:




(d)now write code for  userlogout.php:

<?php
session_start();
session_destroy();
header('location:userlogin.html');

?>


(e)write code for usererror.php:

<?php

echo "make login first";

echo '<a href="userlogin.html">login</a>';

?>

(f) Now write code for  changepassword.php   file:

<?php
session_start();

if(!isset($_SESSION['om']))
{
header('location:usererror.php');
}
?>
<form action="finalchangepassword.php" method="post">
enter password<input type="password" name="password">
<input type="submit" name="button" value="change password">
</form>

(g)Now  write code  for  finalchangepassword.php  file:


<?php
session_start();
if(!isset($_SESSION['om']))
{
header('location:usererror.php');
}
?>
<?php
$email=$_SESSION['om'];

$p=$_POST['password'];

include('connect.php');

$sql="update userrecord set password='$p' where email='$email'";

$res=mysqli_query($con,$sql);

if($res)
{
echo "password changed sucessfull ";
}
else
{
echo "password not changed ";
}




?>


(h)write code for   changeprofile.php    file:

<?php
session_start();
if(!isset($_SESSION['om']))
{
header('location:usererror.php');
}
?>

<?php
$email=$_SESSION['om'];

include('connect.php');

$sql="select * from userrecord where email='$email'";

$res=mysqli_query($con,$sql);
while($row=mysqli_fetch_array($res))
{


echo '
<form action="finalchangeprofile.php" method="post">
Name<input type=text name=name  value="'.$row['name'].'"><br>
contact<input type=text name="contact" value="'.$row['contact'].'"><br>
<input type="submit" name="button" value="change profile">
</form>';
}
?>

(i)write code for  finalchangeprofile.php   file:


<?php
session_start();
if(!isset($_SESSION['email']))
{
header("location:usererror.php");
}
?>




<?php
$email=$_SESSION['email'];

include('connect.php');



$name=$_POST["name"];
$contact=$_POST["contact"];


$sql="update userrecord set name='$name',contact='$contact' where email='$email'";

$result=mysqli_query($con,$sql);
if($result)
{
echo "record update successfully";
}
else
{
echo "record not updated";
}

?>






Now start coding part for admin :


Step  1:

(a)write code for adminlogin.html:

<html>
<head>
<title>admin login</title>

</head>
<body>
<form name=adminform  action="adminlogin.php" method="post"  >
<table >
<tr>
<td>
Admin name </td> <td> <input type="text" name="name"></td></tr>

<tr>
<td>
Password</td> <td><input type="password" name="password"></td> </tr>
<tr> <td> </td> <td>
<input type="submit" name="button" value="admin login"></td> </tr>
</table>
</form>
</body>


</html>


(b)now write code for adminlogin.php:

<?php
include('connect.php');

$name=$_POST['name'];
$password=$_POST['password'];

$sql="select username,password from adminlogin where username='$name' AND password='$password'";

$res=mysqli_query($con,$sql);
$num=mysqli_num_rows($res);
if($num>0)
{
session_start();
$_SESSION['pr']=$name;
header('location:display.php');

}
else
{
echo "invalid login";
}





?>

(c )now write code for display.php :

<?php
session_start();
if(!isset($_SESSION['pr']))
{
header('location:adminerror.php');
}
?>
<html>
<head>
<head>
</head>
<body>
<ul>
<li>
<a href=adminlogout.php>log out</a></li>

<li><a href=adminchangepassword.php>change password</a></li>
</ul>
<h1>user record list </h1>
<?php
include('connect.php');

$sql="select * from userrecord";

$res=mysqli_query($con,$sql);

echo '<table border=1><tr><td>id</td><td>name</td><td>email</td><td>contact</td><td>password</td><td>&nbsp;</td>
<td>&nbsp;</td></tr>';

while($row=mysqli_fetch_array($res))
{
echo '<tr>';
echo '<td>';
echo $row['id'];
echo '</td>';

echo '<td>';
echo $row['name'];
echo '</td>';

echo '<td>';
echo $row['email'];
echo '</td>';

echo '<td>';
echo $row['contact'];
echo '</td>';

echo '<td>';
echo $row['password'];
echo  '</td>';

echo '<td>
<form action="update.php" method="post">
<input type="hidden" name="hidden" value="'.$row['id'].'">
<input type="submit" name="button" value="update">
</form></td>';

echo '<td>
<form action="delete.php" method="post">
<input type="hidden" name="hidden" value="'.$row['id'].'">
<input type="submit" name="button" value="delete">
</form></td>';

echo '<tr>';

}
echo '</table>';



?>
</body>
</html>




(d)now write code for  update.php   file:           
           
<?php
session_start();
if(!isset($_SESSION['pr']))
{
header('location:adminerror.php');
}
?>
<?php
$hidden=$_POST['hidden'];

include('connect.php');

$sql="select * from userrecord where id='$hidden'";

$res=mysqli_query($con,$sql);

while($row=mysqli_fetch_array($res))
{
echo '
<form action="finalupdate.php" method="post">
Id<input type="text" name="id" value="'.$row['id'].'" >
Name<input type="text" name="name"  value="'.$row['name'].'">
Email<input type="text" name="email"  value="'.$row['email'].'">
Contact<input type="text" name="contact"  value="'.$row['contact'].'" >
Password<input type="password" name="password"  value="'.$row['password'].'">
<input type="hidden" name="hidden" value="'.$row['id'].'">
<input type="submit" name="button" value="finalupdate">
</form>';

}



?>



(e)now write code  for  finalupdate.php :

<?php
session_start();
if(!isset($_SESSION['pr']))
{
header('location:adminerror.php');
}
?>

<?php
include('connect.php');

$hidden=$_POST['hidden'];
$name=$_POST['name'];
$email=$_POST['email'];
$contact=$_POST['contact'];
$password=$_POST['password'];

$sql="update userrecord set name='$name', email='$email', contact='$contact', password='$password' where id='$hidden'";

$res=mysqli_query($con,$sql);

if($res)
{
echo "record updated successfully";
}
else
{
echo "record not updated ";
}

?>

(f)now write code for  delete.php:

<?php
include('connect.php');

$hidden=$_POST['hidden'];

echo $sql="delete from userrecord where id='$hidden'";

$res=mysqli_query($con,$sql);
if ($res)
{
echo "record successfully deleted";
}
else
{
echo "record not deleted";
}

?>
(g)write code for adminerror.php:

<?php

echo "make login first";

echo '<a href="adminlogin.html">login</a>';

?>

(h)now write code for  adminlogout.php:

<?php
session_start();
session_destroy();
header('location:adminlogin.html');

?>

(i)now write code for  change admin password  adminchangepassword.php :

<?php
session_start();
if(!isset($_SESSION['pr']))
{
header('location:adminerror.php');
}
?>

<form action="adminfinalchangepassword.php" method="post">
New Password<input type="password" name="password">
<input type="submit" name="button" value="change password">
</form>



(j)write code for adminfinalchangepassword.php file:

<?php
session_start();
if(!isset($_SESSION['pr']))
{
header('location:adminerror.php');
}
?>

<?php
$om=$_SESSION['pr'];

include('connect.php');

$password=$_POST['password'];

$sql="update adminlogin set password='$password' where username='$om'";

$res=mysqli_query($con,$sql);

if($res)
{
echo "password change successfull";
}
else
{
echo "password not changed";
}


?>
================================================================================================================================================
Now  another practice for  Portal website:


IN THIS PORTAL LEST START A JOB PORTAL ,IN THIS   THERE ARE   THREE MODULES:

(1)ADMIN MODULE
(2)RECRUITER MODULE
(3)JOB SEEKER MODULE

Lets start with  Job Seeker  Module:

first of all create table  userrecord:

create table userrecord
(id  int primary key auto_increment,
name  varchar(200),
address  varchar(200),
contact   varchar(200),
gender   varchar(200),
details  varchar(200),
language  varchar(200),
email       varchar(200),
password   varchar(200),
file        varchar(200)
);


write code for connect.php file:

<?php
$con=mysql_connect('localhost','root','');
mysql_select_db('portal',$con);

//$con=mysql_connect("localhost","root","");

//mysql_select_db("manasi",$con);
if(!$con)
{
echo "not connected";
}
?>

(1)first   write code for  registration .html file:


<!DOCTYPE html>
<html lang="en">
  <head>
   
<script>
function valid()
                                                {
                                                                if(myform.name.value=="")
                                                                {
                                                                                alert("Enter your name");
                                                                                return false;
                                                                                document.myform.name.focus();
                                                                }
                                                                if(myform.address.value=="")
                                                                {
                                                                                alert("Enter your address");
                                                                                return false;
                                                                                document.myform.address.focus();
                                                                }
                                                                if(myform.contact.value=="")
                                                                {
                                                                                alert("Enter your contact no");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(isNaN(myform.contact.value))
                                                                {
                                                                                alert("Enter numeric value only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var a=document.myform.contact.value;
                                                                if(a.length>10)
                                                                {
                                                                                alert("Enter 10 digits only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                 if(myform.gender.value=="")
                                                                 {
                                                                 alert("Select gender");
                                                                 return false;
                                                                 }
                                                                 if(myform.details.value=="")
                                                                 {
                                                                 alert("select your qualification and experience");
                                                                 return false;
                                                                 }
                                                                 if(myform.language.value=="")
                                                                 {
                                                                 alert("Enter languages");
                                                                 return false;
                                                                 }
                                                                if (document.getElementById("hindi").checked == false &&   
                                                                document.getElementById("english").checked == false && document.getElementById("marathi").checked == false)   
                                                                {
                                                                                alert ('You did not choose any of the checkboxes yet.');
                                                                                return false;
                                                                }
                                                                if(myform.email.value=="")
                                                                {
                                                                                alert("Enter your email");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
                                                                if(!myform.email.value.match(mailformat))

                                                                {
                                                                alert("You have entered an invalid email address!");
                                                                document.myform.email.focus();
                                                                return false;
                                                                }
                                                                if(myform.password.value=="")
                                                                {
                                                                                alert("Enter your password");
                                                                                return false;
                                                                                document.myform.password.focus();
                                                                }
                                                                if(myform.cpassword.value=="")
                                                                {
                                                                                alert("Confirm your password");
                                                                                return false;
                                                                                document.myform.cpassword.focus();
                                                                }
                                                                if(myform.password.value!==myform.cpassword.value)
                                                                {
                                                                                alert("Password not match");
                                                                                return false;
                                                                                document.myform.password.focus();
                                                                }
                                                                return true;
                                                }
</script>
</head>

  <body role="document">
<h1><i><b>Job seeker registration</b></i></h1>
<form name=myform action="validation.php" method=post onsubmit=return(valid());>
<table border=0>
<tr>
                <td>Name          :</td>
                <td>
<input id="name" name="name" type="text" class="form-control"><br></td>
</tr>
<tr>
                <td>Address      :</td>
                <td><textarea rows=4 cols=20 name=address id=address class="form-control"></textarea><br></td>
                </tr>
<tr>
                <td>Contact       :</td>
                <td><input id="contact" name="contact" type="contact" class="form-control"><br></td>
</tr>
<tr>
                <td>Gender       :</td>
                <td><input type="radio"  name=gender value=male>Male
                <input type="radio" name=gender  value=female>Female<br></td>
</tr>
<tr>
                <td>Qualification and experience            :</td>
                <td><textarea rows=4 cols=20 name=details id=details class="form-control"></textarea><br></td>
</tr>
<tr>
                <td>Language   :</td>
                <td><input type="checkbox"  id=hindi name=language[]  value=hindi>Hindi
<input type="checkbox"  id=english name=language[]   value=english>English
<input type="checkbox"  id=marathi name=language[]   value=marathi>Marathi<br></td>
</tr>
<tr>
                <td>Email            :</td>
                <td><input id="email" name="email" type="text" class="form-control"><br></td></tr>
<tr>
                <td>Password   :</td>
                <td><input id="password"    name="password"     type="password" class="form-control"><br></td></tr>
<tr>
                <td>cPASSWORD             :</td>
                <td><input id="cpassword"    name="cpassword"     type="password" class="form-control"><br></td></tr>
<div id="status"></div>
<tr>
                <td><input name="myBtn" type="submit" value="Register"  class="btn btn-lg btn-primary btn-block" > </td></tr>
</table>
                </form>
               
  </body>
</html>
(2)now write code for  validation.php file:
<?php

$name=$_POST['name'];

$address=$_POST['address'];

$contact=$_POST['contact'];

$gender=$_POST['gender'];

$details=$_POST['details'];

$language=implode(',',$_POST['language']);

$email=$_POST['email'];

$password=$_POST['password'];

$cpassword=$_POST['cpassword'];

include("connect.php");

$sql="select * from  userrecord where   email='$email'";

$result=mysql_query($sql);

$num=mysql_num_rows($result);

if($num>0)
{

echo "<font color=red>email id is already used please use another email id</font>";

}



else 

{


$sql1="insert into userrecord(name,address,contact,gender,details,language,email,password)values('$name','$address','$contact','$gender','$details','$language','$email','$password')";

mysql_query($sql1);

echo "<font color=red>successfully  registered </font>";

}



?>

(3)now  write code for  userlogin.html file:
<form action='userlogin.php' method=post>
                                                <table border=0>
                                                                <tr>
                                                                                <td>Email            :</td>
                                                                                <td><input type=text name=email class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Password   :</td>
                                                                                <td><input type=password name=password class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td><input type=submit name=submit value=Login class="btn btn-lg btn-primary btn-block"></td>
                                                                </tr>
                                                </table>
                                </form>
(4)now write code for userlogin.php  file:
<?php
ob_start();
include('connect.php');

$email=mysql_escape_string($_POST["email"]);

$password=mysql_escape_string($_POST["password"]);

$sql="select email,password from userrecord where email='$email' AND password='$password'";

$result=mysql_query($sql);

$num=mysql_num_rows($result);

if($num>0)

{


session_start();

$_SESSION['email']=$email;

header("Location:userwelcome.php");

}

else

{

echo"invalid login";


}


?>

(5)now  write code for userwelcome.php  file :
<?php
                session_start();
                if(!isset($_SESSION['email']))
                {
                                header('location:uerror.php');
                }
                ?>
               
                <!DOCTYPE html>
<html lang="en">
  <head>
   
</head>
<body role="document">
<div class="container">

          
               
                                               
                                 <li><a href="userwelcome.php">View profile</a></li>
                <li><a href="ujobdisplay.php">Job offers</a></li>
                <li><a href="uuploadresume.php">Upload resume</a></li>
                <li><a href="uchangepassword1.php">Change password</a></li>
                <li><a href="userlogout.php">Logout</a></li>
               
                               
  <h1><b>User Profile</b></h1>
               
                <?php
                $session=$_SESSION['email'];
                echo "welocme                :".$session.'<br>';
                include("connect.php");
                $sql="select * from  userrecord  where email='$session'";
                $result=mysql_query($sql);
                echo '<table class="table table-striped">';
                                while($row=mysql_fetch_array($result))
                                 {
                               
                                               
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Name       :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['name'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Address  :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['address'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Contact No.           :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['contact'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Gender   :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['gender'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Qualification and experience         :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['details'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Language                :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['language'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Email        :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['email'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Password               :";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['password'].'<br><br>';
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
               
                                                                echo '<td>';
                                                                                echo '<button>
                                                                                                                                <a href=userupdate.php>Update</a>
                                                                                                                </button>';
                                                                echo '</td>';
                                                echo '</tr>';      
                                 }
                                 echo '</table>';
                                 
?>

(6)now write code for userupdate.php file:
<?php
session_start();
                if(!isset($_SESSION['email']))
                {
                   header('location:uerror.php');
                                                                                                                                                                                                                                                                                                                                                                                                                                  
                }
                ?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <script type="text/javascript">
                                                function valid()
                                                {
                                                                if(myform.name.value=="")
                                                                {
                                                                                alert("Enter your name");
                                                                                return false;
                                                                                document.myform.name.focus();
                                                                }
                                                                if(myform.address.value=="")
                                                                {
                                                                                alert("Enter your address");
                                                                                return false;
                                                                                document.myform.address.focus();
                                                                }
                                                                if(myform.contact.value=="")
                                                                {
                                                                                alert("Enter your contact");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var a=document.myform.contact.value;
                                                                if(a.length>10 || a.length<10)
                                                                {
                                                                                alert("Enter 10 digits only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(isNaN(myform.contact.value))
                                                                {
                                                                                alert("Enter numeric value only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(myform.gender.value=="")
                                                                 {
                                                                 alert ("select your gender");
                                                                 return false;
                                                                 }
                                                                 if(myform.details.value=="")
                                                                 {
                                                                 alert ("select your qualification and experience");
                                                                 return false;
                                                                 }
                                                                  if(myform.language.value=="")
                                                                 {
                                                                 alert ("Select language");
                                                                 return false;
                                                                 }
                                                                if (document.getElementById("hindi").checked == false &&   
                                                                document.getElementById("english").checked == false && document.getElementById("marathi").checked == false)   
                                                                {
                                                                                alert ('You did not choose any of the checkboxes yet.');
                                                                                return false;
                                                                }
                                                               
                                                                if(myform.password.value=="")
                                                                {
                                                                                alert("Enter your password");
                                                                                return false;
                                                                                document.myform.password.focus();
                                                                }
                                                                return true;
                                                }
                                </script>

</head>
<body role="document">
          
               
                                               
                                 <li><a href="userwelcome.php">View profile</a></li>
                <li><a href="ujobdisplay.php">Job offers</a></li>
                <li><a href="uuploadresume.php">Upload resume</a></li>
                <li><a href="uchangepassword1.php">Change password</a></li>
                <li><a href="userlogout.php">Logout</a></li>
                                                 
               
          </ul>
        </div><!--/.nav-collapse -->
                                </div>
    </nav>
               
<h1><i><b>Update profile</b></i></h1>

                <?php
                include("connect.php");
                $session=$_SESSION['email'];
                $sql="select * from userrecord where email='$session'";

                $result=mysql_query($sql);
                echo '<table border=0>';
                while($row=mysql_fetch_array($result))
                {
                echo '<form action="userfinalupdate.php" method="post" name=myform onsubmit=return(valid());>';


                echo '<tr>';
                                echo '<td>';
                                                                echo 'Name :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<input type=text name=name value="'.$row['name'].'"class="form-control"><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                echo 'Address   :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<textarea rows=3 cols=20 name=address class="form-control">'.$row['address'].'</textarea><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                                echo 'Contact    :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<input type=text name=contact value="'.$row['contact'].'" class="form-control"><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                                echo 'Gender    :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<input type=text name=gender value="'.$row['gender'].'" class="form-control"><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                echo 'Qualification and experience          :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<textarea rows=3 cols=20 name=details class="form-control">'.$row['details'].'</textarea><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                                echo 'Language :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<input type=text name=language value="'.$row['language'].'" class="form-control"><br>';
                                                echo '</td>';
                                echo '</tr>';
                                echo '<tr>';
                                                echo '<td>';
                                                                echo 'Password                :';
                                                echo '</td>';
                                                echo '<td>';
                                                                echo '<input type=text name=password value="'.$row['password'].'" class="form-control"><br>';
                                                echo '</td>';
                                echo '</tr>';
                echo '<tr>';
                                echo '<td><input type=submit name=submit value=Update class="btn btn-lg btn-primary btn-block"><td>';
                echo '</tr>';

                echo '</form>';

                }
                echo '</table>';

?>
(6)now write code for userfinalupdate.php  file:
<?php
                session_start();
                if(!isset($_SESSION['email']))
                {
                                 header('location:uerror.php');
                                                                                                                                                                                                                                                                                 
                }
$session=$_SESSION['email'];
                $name=$_POST['name'];
                $address=$_POST['address'];
                $contact=$_POST['contact'];
                $gender=$_POST['gender'];
                $details=$_POST['details'];
                $language=$_POST['language'];
                $password=$_POST['password'];
               
               
                include("connect.php");
                $sql="update userrecord set name='$name',address='$address',contact='$contact',gender='$gender',details='$details',language='$language',password='$password' where email='$session'";
               
mysql_query($sql);
               

                header('Location:userwelcome.php');
?>

(7)now write code for uploadresume.php file:
<?php
session_start();
                if(!isset($_SESSION['email']))
                {
                   header('location:uerror.php');
                                                                                                                                                                                                                                                                                                                                                                                                                                  
                }
                ?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <script type="text/javascript">
                                                function valid()
                                                {
                                                                if(myform.file.value=="")
                                                                {
                                                                                alert("Enter your file");
                                                                                return false;
                                                                                document.myform.file.focus();
                                                                }
                                                               
                                                }
                                </script>

</head>
<body role="document">
                                 <li><a href="userwelcome.php">View profile</a></li>
                <li><a href="ujobdisplay.php">Job offers</a></li>
                <li><a href="uuploadresume.php">Upload resume</a></li>
                <li><a href="uchangepassword1.php">Change password</a></li>
                <li><a href="userlogout.php">Logout</a></li>
               
                                                 
               
         
               
<h1><i><b>Upload resume</b></i></h1>

                <?php
                include("connect.php");
                $session=$_SESSION['email'];
                $sql="select * from userrecord where email='$session'";

                $result=mysql_query($sql);
                echo '<table class="table table-striped">';
                while($row=mysql_fetch_array($result))
                {
                echo '<form action="uuploadresume1.php" method="post" name=myform onsubmit=return(valid()); enctype="multipart/form-data">';

                echo '<tr>';
                                echo '<td>Qualification and experience                :</td>';
                                echo '<td>';
                                                echo '<input type=text name=details value="'.$row['details'].'" class="form-control"><br> ';
                                echo '</td>';
                echo '</tr>';
               
                echo '<tr>';
                                echo '<td>Upload resume           :</td>';
                                echo '<td>';
                                               
                                                echo '<input type=file name=file value="'.$row['file'].'" class="form-control"><br> ';
                                echo '</td>';
                echo '</tr>';
                echo '<tr>';
                                echo '<td><input type=submit name=submit value="Upload resume" class="btn btn-lg btn-primary btn-block"><td>';
                echo '</tr>';

                echo '</form>';

                }
                echo '</table>';

?>
(9)now  write code for uploadresume1.php file:
<?php
session_start();
                if(!isset($_SESSION['email']))
                {
                                header('location:uerror.php');
                }
               
$session=$_SESSION['email'];
$details=$_POST['details'];
$file=$_FILES['file']['name'];



//$con=mysql_connect("localhost","root","");

//mysql_select_db("portal",$con);

include("connect.php");


$sql1="update userrecord set details='$details',file='$file' where email='$session'";

mysql_query($sql1);
move_uploaded_file($_FILES['file']['tmp_name'],"resume/".$_FILES['file']['name']);
echo "<font color=red>resume successfully updated </font>";





?>
(10)now    write code for userlogout.php   file:
<?php
                session_start();
                session_destroy();
                header('Location:userlogin.html');
?>


=========================second Module for Recruiters==========================
Recruiters Module :
create tables:
create table  recruiter
(id  int primary key auto_increment,
name   varchar(200),
location  varchar(200),
ctype     varchar(200),
contact    varchar(200),
email      varchar(200),
password   varchar(200)
);


create table joboffer
 (
id   int primary key auto_increment,
email   varchar(200),
name    varchar(200),
title   varchar(200),
location  varchar(200),
description   varchar(200),
file          varchar(200)

);

(1)first   write code  rreg.html    file  :

<!DOCTYPE html>
<html lang="en">
  <head>
                <script type="text/javascript">
                                                function valid()
                                                {
                                                                if(myform.name.value=="")
                                                                {
                                                                                alert("Enter your name");
                                                                                return false;
                                                                                document.myform.name.focus();
                                                                }
                                                                if(myform.location.value=="")
                                                                {
                                                                                alert("Enter your company location");
                                                                                return false;
                                                                                document.myform.location.focus();
                                                                }
                                                                if(myform.ctype.value=="")
                                                                {
                                                                                alert("Enter your company type");
                                                                                return false;
                                                                                document.myform.ctype.focus();
                                                                }
                                                                var a=document.myform.contact.value;
                                                                if(a.length>10)
                                                                {
                                                                                alert("Enter 10 digits only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(myform.contact.value=="")
                                                                {
                                                                                alert("Enter your contact no");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(isNaN(myform.contact.value))
                                                                {
                                                                                alert("Enter numeric value only");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                if(myform.email.value=="")
                                                                {
                                                                                alert("Enter your email");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
                                                                if(!myform.email.value.match(mailformat))

                                                                {
                                                                alert("You have entered an invalid email address!");
                                                                document.myform.email.focus();
                                                                return false;
                                                                }
                                                                if(myform.password.value=="")
                                                                {
                                                                                alert("Enter your password");
                                                                                return false;
                                                                                document.myform.password.focus();
                                                                }
                                                                if(myform.cpassword.value=="")
                                                                {
                                                                                alert("Confirm your password");
                                                                                return false;
                                                                                document.myform.cpassword.focus();
                                                                }
                                                                if(myform.password.value!==myform.cpassword.value)
                                                                {
                                                                                alert("Password not match");
                                                                                return false;
                                                                                document.myform.password.focus();
                                                                }
                                                                return true;
                                                }
                                </script>
                </head>
                <body role="document">
 
  <h1><i><b>Recruiter Registration</b></i></h1>
                <form name=myform action="rreg.php" method=post onsubmit=return(valid());>
                                <table border=0>
                                                                <tr>
                                                                                <td>Name          :</td>
                                                                                <td><input type=text id=name name=name placeholder="Enter your name" class="form-control"> <br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Company Location :</td>
                                                                                <td><textarea input type=text id=location name=location placeholder="Enter your address" class="form-control"></textarea> <br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Company type         :</td>
                                                                                <td><input type=text id=ctype name=ctype placeholder="Enter your name" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Contact       No.         :</td>
                                                                                <td><input type=text id=contact name=contact placeholder="Enter your contact no." class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Email            :</td>
                                                                                <td><input type=text id=email name=email placeholder="Enter your Email Id" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Password   :</td>
                                                                                <td><input type=password id=password name=password placeholder="Enter password" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Confirm Password :</td>
                                                                                <td><input type=password id=cpassword name=cpassword placeholder="Enter password" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>
                                                                                <input name="myBtn" type="submit" value="Register" class="btn btn-lg btn-primary btn-block">
                                                                                </td>
                                                                </tr>
                                                </table>
                </form>
               
                </body>
</html>
(2)write    code  for  rreg.php      file:
<?php
include("connect.php");
$name=$_POST['name'];
$location=$_POST['location'];
$ctype=$_POST['ctype'];
$contact=$_POST['contact'];
$email=$_POST['email'];
$password=$_POST['password'];
                $sql="select * from recruiter where email='$email'";
                $result=mysql_query($sql);
                $num=mysql_num_rows($result);
                if($num>0)
                {
                                echo "<font color=red>email id is already used please use another email id</font>";
                }
                else 
                {
                                $sql1="insert into recruiter(name,location,ctype,contact,email,password) values('$name','$location','$ctype','$contact','$email','$password')";
                                mysql_query($sql1);
                                echo "<font color=red>successfully  registered </font>";
                }

?>
(3)now  write code for   rlogin.html file:
<!DOCTYPE html>
<html lang="en">
  <head>
    </head>
                <body role="document">
               
  <h1><b>Recruiter Login</b></h1>
                                <form action='rlogin.php' method=post>
                                                <table border=0>
                                                                <tr>
                                                                                <td>Email            :</td>
                                                                                <td><input type=text name=email class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Password   :</td>
                                                                                <td><input type=password name=password class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td><input type=submit name=submit value=Login class="btn btn-lg btn-primary btn-block"></td>
                                                                </tr>
                                                </table>
                                </form>
               
  </body>
</html>

(4)now      write code for  rlogin.php file:
<?php
ob_start();
include('connect.php');

$email=mysql_escape_string($_POST["email"]);

$password=mysql_escape_string($_POST["password"]);

$sql="select email,password from recruiter where email='$email' AND password='$password'";

$result=mysql_query($sql);

$num=mysql_num_rows($result);

if($num>0)

{


session_start();

$_SESSION['email']=$email;

header("Location:rwelcome.php");

}

else

{

echo"invalid login";


}


?>

(5)now write code for    rwelcome.php   file:
<html>
<head>
</head>
<body>
<li><a href="rwelcome.php">View profile</a></li>
                <li><a href="ruserdisplay.php">User profile</a></li>
                <li><a href="joboffer.html">Upload job offers</a></li>
                <li><a href="jobofferdisplay.php">View job offers</a></li>
                <li><a href="jobofferdisplay.php">Change password</a></li>
                <li><a href="rlogout.php">Logout</a></li>
<?php
session_start();
                if(!isset($_SESSION['email']))
                {
                                header('location:rerror.php');
                }
                $session=$_SESSION['email'];
                include("connect.php");
                $sql="select * from  recruiter  where email='$session'";
                $result=mysql_query($sql);
                echo '<table class="table table-striped">';
                                while($row=mysql_fetch_array($result))
                                 {
                                                echo "<h1>Recruiter profile </h1>";
                                               
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Name";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['name'];
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Company location";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['location'];
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Company type";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['ctype'];
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Contact No.";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['contact'];
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Email";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['email'];
                                                                echo '</td>';
                                                echo '</tr>';
                                                echo '<tr>';
                                                                echo '<td>';
                                                                                echo "Password";
                                                                echo '</td>';
                                                                echo '<td>';
                                                                                echo $row['password'];
                                                                echo '</td>';
                                                echo '</tr>';
                                               
                                                                echo '<td>';
                                                                                echo '<button>
                                                                                                                                <a href=rupdate.php>Update</a>
                                                                                                                </button>';
                                                                echo '</td>';
                                                echo '</tr>';      
                                 }
                                 echo '</table>';
                                 
?>
</body>
</html>
(6)now write code for  joboffer.html file:
<html>
<head>
<script type="text/javascript">
                                                function valid()
                                                {
                                                                if(myform.email.value=="")
                                                                {
                                                                                alert("Enter your email");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
                                                                if(!myform.email.value.match(mailformat))

                                                                {
                                                                alert("You have entered an invalid email address!");
                                                                document.myform.email.focus();
                                                                return false;
                                                                }
                                                                if(myform.name.value=="")
                                                                {
                                                                                alert("Enter company name");
                                                                                return false;
                                                                                document.myform.name.focus();
                                                                }
                                                                if(myform.title.value=="")
                                                                {
                                                                                alert("Enter job title");
                                                                                return false;
                                                                                document.myform.title.focus();
                                                                }
                                                                if(myform.location.value=="")
                                                                {
                                                                                alert("Enter job location");
                                                                                return false;
                                                                                document.myform.location.focus();
                                                                }
                                                                if(myform.description.value=="")
                                                                {
                                                                                alert("Enter job description");
                                                                                return false;
                                                                                document.myform.description.focus();
                                                                }
                                                                return true;
                                                }
                                </script>
</head>
<body>
<h1><b>Post job offer</b></h1>
                <form name=myform action="joboffer.php" method=post enctype="multipart/form-data" onsubmit=return(valid());>
                                <table border=0>
                                                               
                                               
                                                                               
                                                                <tr>
                                                                                <td>Company Name      :</td>
                                                                                <td><input type=text id=name name=name placeholder="Enter company name" class="form-control"><br></td>
                                                                </tr>
                                                               
                                                                <tr>
                                                                                <td>Job title      :</td>
                                                                                <td><input type=text id=title name=title placeholder="Enter job title" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Job Location             :</td>
                                                                                <td><input type=text id=location name=location placeholder="Enter job location" class="form-control"><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Job description        :</td>
                                                                                <td><textarea rows=4 cols=20 id=description name=description placeholder="Enter job description." class="form-control"></textarea><br></td>
                                                                </tr>
                                                                <tr>
                                                                                <td>Upload image          :</td>
                                                                                <td><input type=file id=file name=file class="form-control"><br></td>
                                                                </tr>
                                                                                <tr>
                                                                                <td><input type=submit id=submit name=submit value="Post job offer" class="btn btn-lg btn-primary btn-block"></td>
                                                                </tr>
                                                </table>
                </form>
               
</body>
</html>
(7)now write code for joboffer.php file:
<?php
session_start();
if(!isset($_SESSION['email']))
{
                header('location:rerror.php');
              
}
include("connect.php");
$email=$_POST['email'];
$name=$_POST['name'];
$title=$_POST['title'];
$location=$_POST['location'];
$description=$_POST['description'];
$file=$_FILES['file']['name'];
$session=$_SESSION['email'];

                               
                                $sql="insert into joboffer(email,name,title,location,description,file) values('$session','$name','$title','$location','$description','$file')";
                                mysql_query($sql) or die(mysql_error());
move_uploaded_file($_FILES['file']['tmp_name'],"image/".$_FILES['file']['name']);
                                header('Location:jobofferdisplay.php');
                               
               

?>


(8)now write code for jobofferdisplay.php file:
<?php
session_start();
if(!isset($_SESSION['email']))
{
                header('location:rerror.php');
              
}
include("connect.php");
$session=$_SESSION['email'];
$sql="select * from joboffer where email='$session'";
$result=mysql_query($sql);
echo '<table class="table table-striped"><table class="table table-striped"><tr><td>Email</td><td>Company name</td><td>Job title</td><td>Job location</td><td>Job description</td><td>Upload image</td> <td></td><td></td></tr>';
while($row=mysql_fetch_array($result))
{
                echo '<tr>';
                               
                                echo '<td>';
                                                echo $row['email'];
                                echo '</td>';
               
               
                                echo '<td>';
                                                echo $row['name'];
                                echo '</td>';
               
                               
                                echo '<td>';
                                                echo $row['title'];
                                echo '</td>';
               
                               
                                echo '<td>';
                                                echo $row['location'];
                                echo '</td>';
               
                               
                                echo '<td>';
                                                echo $row['description'];
                                                echo '</td>';
                               
                                echo '<td>';
                                                echo $image=$row['file'];
                                                echo "<img  src='image/".$image."'   height=100 width=100   border=10 >";
                                               
                                echo '</td>';
               
                                echo '<td><form action="jobofferupdate.php" method=post>
<input type=hidden name=hidden value="'.$row['id'].'">
<input type=submit name=button value=update></form></td>';

                                echo '<td><form action="jobofferdelete.php" method=post>
<input type=hidden name=hidden value="'.$row['id'].'">
<input type=submit name=submit value=delete>
</form></td>';
                echo '</tr>';
               
               
               
               
               
               
               
}
echo '</table>';
?>
(9)now write code for  jobofferupdate.php file:
<html>
<head>
<script type="text/javascript">
                                                function valid()
                                                {
                                                                if(myform.email.value=="")
                                                                {
                                                                                alert("Enter your email");
                                                                                return false;
                                                                                document.myform.contact.focus();
                                                                }
                                                                var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
                                                                if(!myform.email.value.match(mailformat))

                                                                {
                                                                alert("You have entered an invalid email address!");
                                                                document.myform.email.focus();
                                                                return false;
                                                                }
                                                                if(myform.name.value=="")
                                                                {
                                                                                alert("Enter company name");
                                                                                return false;
                                                                                document.myform.name.focus();
                                                                }
                                                                if(myform.title.value=="")
                                                                {
                                                                                alert("Enter job title");
                                                                                return false;
                                                                                document.myform.title.focus();
                                                                }
                                                                if(myform.location.value=="")
                                                                {
                                                                                alert("Enter job location");
                                                                                return false;
                                                                                document.myform.location.focus();
                                                                }
                                                                if(myform.description.value=="")
                                                                {
                                                                                alert("Enter your company description");
                                                                                return false;
                                                                                document.myform.description.focus();
                                                                }
                                                                return true;
                                                }
                                </script>
</head>
<?php
                include("connect.php");
                $hidden=$_POST['hidden'];
                $sql="select * from joboffer where id='$hidden'";

                $result=mysql_query($sql);
                echo '<table >';
                while($row=mysql_fetch_array($result))
                {
                echo '<form action="jobofferfupdate.php" method="post" name=myform onsubmit=return(valid()); enctype="multipart/form-data">
                                <tr>
                                                <td>Email            :</td>
                                                <td><input type=text name=email value="'.$row['email'].'" class="form-control"><br></td>   
                                </tr>
                                <tr>
                                                <td>Company name      :</td>
                                                <td><input type=text name=name value="'.$row['name'].'" class="form-control"><br></td>  
                                </tr>
                                <tr>
                                                <td>Job title      :</td>
                                                <td><input type=text name=title value="'.$row['title'].'" class="form-control"><br></td>         
                                </tr>
                                <tr>
                                                <td>Job location              :</td>
                                                <td><input type=text name=location value="'.$row['location'].'" class="form-control"><br></td>               
                                </tr>
                                <tr>
                                                <td>Job description        :</td>
                                                <td><input type=text name=description value="'.$row['description'].'" class="form-control"><br></td>       
                                </tr>
                                <tr>
                                                <td>File               :</td>
                                                <td><input type=file  name=file  ><br></td>    
                                </tr>
                                <tr>
                                                <td>
                                                                <input type=hidden name=hidden value="'.$row['id'].'" >
                                                                <input type=submit name=submit value=Update class="btn btn-lg btn-primary btn-block">
                               
                                                </td>   
                               
                                </tr>
                </form>';

                }
echo '</table>';
?>
(10)now   write code for jobofferfupdate.php file:
<?php
                session_start();
                if(!isset($_SESSION['email']))
                {
                                 header('location:rerror.php');
                                                                                                                                                                                                                                                                                 
                }
                include("connect.php");
$hidden=$_POST['hidden'];
$email=$_POST['email'];
                $name=$_POST['name'];
                $title=$_POST['title'];
                $location=$_POST['location'];
                $description=$_POST['description'];
                $file=$_FILES['file']['name'];
               
                $sql="update joboffer set email='$email',name='$name',title='$title',location='$location',description='$description',file='$file' where id='$hidden'";
               
mysql_query($sql) or die(mysql_error());
                move_uploaded_file($_FILES['file']['tmp_name'],"image/".$_FILES['file']['name']);

                header('Location:jobofferdisplay.php');
?>

(11)now    write   code    for     jobofferdelete.php   file:
<?php
session_start();
if(!isset($_SESSION['email']))
{
                header('location:rerror.php');
              
}
include("connect.php");
$hidden=$_POST['hidden'];
$sql="delete from joboffer where id='$hidden'";
mysql_query($sql);
header('Location:jobofferdisplay.php');
?>

(12)now  write code for ruserdisplay.php file :
<html>
<body>

<li><a href="rwelcome.php">View profile</a></li>
                <li><a href="ruserdisplay.php">User profile</a></li>
                <li><a href="joboffer.html">Upload job offers</a></li>
                <li><a href="jobofferdisplay.php">View job offers</a></li>
                <li><a href="jobofferdisplay.php">Change password</a></li>
                <li><a href="rlogout.php">Logout</a></li>
               
  <h1><b>User display</b></h1>


<?php
include("connect.php");
$sql="select * from userrecord";
$result=mysql_query($sql);
echo '<table class="table table-striped"><tr><td>name</td><td>address</td><td>Contact</td><td>Gender</td><td>Qualification and experience</td><td>language</td><td>email</td><td>Resume</td></tr>';
while($row=mysql_fetch_array($result))
{
echo '<tr>';
echo '<td>';
echo $row['name'];
echo '</td>';
echo '<td>';
echo $row['address'];
echo '</td>';
echo '<td>';
echo $row['contact'];
echo '</td>';
echo '<td>';
echo $row['gender'];
echo '</td>';
echo '<td>';
echo $row['details'];
echo '</td>';
echo '<td>';
echo $row['language'];
echo '</td>';
echo '<td>';
echo $row['email'];
echo '</td>';
echo '<td>';
                $image=$row['file'];
                echo '<a href="resume/'.$image.'">resume</a>';
echo '</td>';
}
echo '</table>';

?>
</body>
</html>

(13)rlogout.php file:
<?php

session_start();
session_destroy();
header('Location:rlogin.html');
?>
(14)write code for rerror.php file:
<?php
                echo "Make login first";
                echo '<a href="rlogin.php">login</a>';
?>

            
=============================Admin Module================================



Browsers

Powered by Blogger.

Feature Post

About Me

My photo
B.E.(COMPUTER ENGINEER) PHP Web developer & Provide Training for Web Development , Digital Marketing ,Android Mobile Apps Development

Post Slider (Homepage)

Blog Archive

Malwares

Transfer Files

Media Players

Download Manager

Window

Torrents Soft

Developer Tools

Botton Ad

Ads

Newsletter

 

© 2013 PHP TRAINING IN MUMBAI BY OM SIR . All rights resevered. Designed by OM SIR

Back To Top