I have a mysql table for my users' username, password, etc. This code is part of my login.php file. It used to work fine but then it puked:
Note: TABLE is defined in a seperate MYSQL_CONFIG.inc.php file.
$table = mysql_query("SELECT * FROM " . TABLE . " WHERE username='$user'") or die('query');
$data = mysql_fetch_array($table) or die('fetch array');
I can't seem to figure out why this isn't working. I have another page, member.php, in which the user can change their username, password, email, etc. I fully debugged that, but when I added a link to that page in my navbar, the login page puked. It makes no sense to me. Anyone have any ideas?
I also get no error messages. I just get a blank page when I load login.php