You are on page 1of 2

Conn.php(Connection File) <?

php $conn_of='local'; //$conn_of='remote';

if($conn_of=='local') { $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } else { mysql_select_db('job'); } } else { $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } else {

mysql_select_db('job_seeker'); } } ?> Utils.php(for Session) <?php session_start();

//Database Connection here

include 'conn.php'; function checklogin_employee() { if($_SESSION[employee_login]!=true) { header("location:jobseekers_login.php"); exit; } } ?>

You might also like