Question: PHP- MySQL plz help?!?!?!?!? $res = mysql_fetch_array(mysql_query\n("SELECT * FROM members WHERE username = '$_SESSION ['username']'"));\n\n\n"q..." is "query" i dunno y it change it to "q..."!!!!\ni have this code and i get this error i dunno y\nWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:&#92;softwares&#92;appserv&#92;www&#92;login&#92;welcome.php on line 8

Answer: 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.
This question from the Yahoo Q&A forum is categorized in the topic: Sports