hi i want to start a session of user but i am unable to do that. i have see examples of it also but my problem is still the same. i am getting this error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a2277283/public_html/scripts/login.php on line 11
here is my code
<?php
ob_start();
session_start();
include 'db.php';
if (isset($_POST['submit'])) {
echo $email = $_POST['user_email'];
$sql = "select * from user where `user_email` = '$email'";
if (mysql_query($sql)) {
$_SESSION['email'] = $email;
echo "$_SESSION['email']";
}
}
?>