Quote Originally Posted by deAthbLisS View Post
try this
PHP Code: 
$username $_SESSION['username'];
echo 
$username;
$mysqlquery mysql_query("SELECT * FROM members WHERE username='" $username ."'");
$fetch_users_data mysql_fetch_object($mysqlquery); 
Now it gives the error on line 5 ($fetch_users_data = mysql_fetch_object($mysqlquery);
)

I think the error is because of the function 'mysql_fetch_object' Any ideas?
gamma Reviewed by gamma on . mysql syntax error there's a syntax error in this mysql statement.. please help.. thanks a ton.. $fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM 'members' WHERE username=".$_SESSION."")); ---------- Post added 16th Apr 2012 at 07:04 AM ---------- Previous post was 15th Apr 2012 at 11:38 AM ---------- bump Rating: 5