I have developed a small CMS on my local WAMP machine.
Once I have exported my project on to the hosting, the following problem shows up
Warn
Your problem here is that after the concatenation, your query is probably invalid.
You should log your query after the concatenation to see if this is the case. You should also test what the mysql_query returns before to call mysql_fetch_assoc.
On another note:
Is that your true production code ? If this is a public facing site then that's a serious security hole and is vulnerable to SQL injection attacks.
What if I put in your username field:
1;TRUNCATE pureUser --
Your query become:
SELECT id,usr FROM pureUser WHERE usr=1; TRUNCATE pureUser -- AND pass=...
So, you should try the filter php native extension:
Data filtering
Futhermore, you should try PDO, which is more powerful and robust to work with databases:
PHP Data Objects