Question: I get the below error: Parse error : syntax error, unexpected string content , expecting - or identifier or variable or number in C:xampphtdocsbooksprofile_hndl.php on

I get the below error:

Parse error: syntax error, unexpected string content "", expecting "-" or identifier or variable or number in C:\xampp\htdocs\books\profile_hndl.php on line 27

This is the profile_hndl.php file, any advice?

ProjectX

include 'partials/dbconnect.php';?>

echo'

';

$sql="SELECT * FROM `user` WHERE $email = 'logemail';

$result = mysqli_query($conn,$sql);

while($row=mysqli_fetch_assoc($result))

{

$id=$row['id'];

$email=$row['logemail'];

$Country=$row['country'];

$city=$row['city'];

echo '

'.$email.'

Original price : '.$Country.' Author name : '.$city.'

posted on : '.$time.'

';

}

?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!