« first day  last day (14 days later) » 

12:46 AM
<?php
error_reporting(~E_NOTICE);

require_once 'dbconfig.php';

//////------------------------------------------------
session_start();
if(empty($_SESSION)|| empty($_SESSION['login_id'])){
header('location:login.php');

};
echo"Welcome!! ".$_SESSION['login_id']." ";
echo '<a href="logout.php">log out</a>';
//-----------------------------------------------------


if (isset($_GET['edit_id']) && !empty($_GET['edit_id'])) {
$id = $_GET['edit_id'];
$stmt_edit = $DB_con->prepare('SELECT userName, password, userProfession, userPic FROM tbl_users WHERE userID =:uid');
This page is working
 
 
5 hours later…
6:08 AM
Yes.this code is right..do you get error with this page too?
 

« first day  last day (14 days later) »