Quote Originally Posted by Moggy View Post
Instead of 1 big line, try to split it up, so you can identify the error better.

PHP Code: 
$username $_SESSION['username'];
$mysqlquery mysql_query("SELECT * FROM members WHERE username='$username'");
$fetch_users_data mysql_fetch_object($mysqlquery); 
Thanks Moggy. But it gives the following error for the last line($fetch_users_data = mysql_fetch_object($mysqlquery)

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jaggadak/public_html/includes.php on line 4
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