i'm having a peculiar issue.
i'm using a SELECT * FROM statement to call a user profile based on their username.
Code: Select all
if (!empty($_POST['uniquename'])) {
$_SESSION['uniquename'] = $_POST['uniquename'];}
$q1 = 'SELECT * FROM hcw_userDetail WHERE UserDetail_UniqueName='.$_SESSION['uniquename'];the thing is, it appears to be substituting the column UserDetail_UniqueName with 'mbent'...
but i get this error, and the user isn't selectedthe query prints this: SELECT * FROM hcw_userDetail WHERE UserDetail_UniqueName=mbent
any ideas?Unknown column 'mbent' in 'where clause'