It sounds frustrating to deal with login issues, especially when you're new to PHP/MySQL. Here are a few things you might want to check:
Database...