Home › Forums › Back End › Nice Profile URL? › Re: Nice Profile URL?
February 1, 2012 at 7:19 pm
#95969
Member
“Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /customers/9/7/5/underbakke.net/httpd.www/profile.php on line 25 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /customers/9/7/5/underbakke.net/httpd.www/profile.php on line 92”
Your mysql_query() must be returning false rather than an array.
I would guess that is because your query needs to query username = “something” where as id can successfully be queried against a non quoted integer like id = 3
you would need to modify the query to
‘SELECT * from users WHERE username = “‘.$username.'”‘
so that the username is quoted out in the actual query string.