Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Nice Profile URL? Re: Nice Profile URL?

#95969
bungle
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.