I'm getting an error as per the title, on line 14. I'm very new to php, I login and this code throws an error on logging in to the index page. I am able to login though (not too sure how).
<?php
include 'functions.php';
include_once("config.php");
session_start();
if(!isset($_SESSION["email"])){
header("location: login.php");
exit();
}
$id = preg_replace('#[^0-9]#i', '',$_SESSION["id"]);
$email = preg_replace('#[^A-Za-z0-9]#i', '', $_SESSION["email"]);
$password = preg_replace('#[^A-Za-z0-9]#i', '', $_SESSION["password"]);
include "db_connect.php";
$sql=mysql_query("SELECT * FROM 'members' WHERE id - ? LIMIT 1"); // query the person
$existCount=mysql_num_rows($sql); // count the nums
if ($existCount==1){//evaluate the count
echo "Your login session data is not on record in the database";
exit();
}
?>