I'll tell you why it's not working!
you were doing all these mysql_query() but not once have fetched the results!
another thing, you didn't surround the user_id with quotes..
also, you are doing the same query over and over but just changing the field you are fetching!
use one query with all fields and then do your IFs..
try this one instead: