Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘@gmail.com’ at line 1 in C:xampphtdocsbookyourpropertyprofile.php:34 Stack trace: #0 C:xampphtdocsbookyourpropertyprofile.php(34): mysqli_query(Object(mysqli), ‘SELECT * FROM u…’) #1 {main} thrown in C:xampphtdocsbookyourpropertyprofile.php on line 34
<?php
$fetch_user_details_query = "SELECT * FROM user_master WHERE user_email_address = ".$_SESSION['username'];
$fetch_user_details_q = mysqli_query($conn, $fetch_user_details_query);
$fetch_user_details_row = mysqli_fetch_array($fetch_user_details_q);
?>