try changing your line (28) from this...
if (mysql_num_rows($query) = 1) {
to this...
if (mysql_num_rows($query) > 0) {
or if you really need to make sure there is only one record returned ...
if (mysql_num_rows($query) == 1) {
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
Offline 54 posts
since Jun 2005