Umm, i was just coding (hurray fo nuub's) and i came across this error that i have never seen before, and worse yet, i have no clue how to fix it, heres the error:
Fatal error: Allowed memory size of 4194304 bytes exhausted (tried to allocate 11520 bytes) in /usr/home/ghettopile/public_html/cc/login.php on line 14
the code that causes this error:
$query = 'SELECT * FROM ccusers';
$query .= ' WHERE username=\'' . $_POST['user'] . '\'';
$query .= ' AND password=\'' . $_POST['pass'] . '\'';
$result = mysql_query($query, $mysql_link) or die ("<br>Invalid query to database, please contact the webmaster. The error returned was " . mysql_error() . "From the query " . $query);
The error only happens when i log in correctly, when i login using bad username/combo,
else {
die("Invalid Username/Password Combination");
}
kicks in 😃