<?php
session_start();
date_default_timezone_set('Asia/Kolkata');
$servername = "localhost";
$username = "r050822a_rcs";
$password = "r050822a_rcs";
$dbname = "r050822a_rcs";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}
if(isset($_SESSION['puid'])){
  $userid=$_SESSION['puid'];
}
?>