text: You have a function using another function's result as it's parameter.\n\nmysql_query is not returning the correct data type that the myspq_fetch_array function is expecting.\n\nProbably because:\n\n "SELECT * FROM members WHERE username = '$_SESSION ['username']'"\n\nis a very weird string to pass to a function in the first place, and maybe the mysql_query function is erroring, and not returning what you are expecting.