[18-Dec-2014 01:18:54 Europe/Helsinki] PHP Notice: Undefined index: username in /home/stance93/public_html/game/core.php on line 738
on this line i have
if (@!isset($_SESSION['username'])) {
echo '<script>window.location = "index"</script>';
}
$username = $_SESSION['username'];
[18-Dec-2014 01:18:54 Europe/Helsinki] PHP Notice: Undefined index: username in /home/stance93/public_html/game/core.php on line 946 on this line i have
<?php
$username = $_SESSION['username'];
$uid = get_userid($username);
?>
and another one on line 995 with :
$user = $_SESSION['username'];
$selectuser = mysql_query("SELECT * FROM users WHERE username='$user'");
$urow = mysql_fetch_array($selectuser);
my error log is more than 150Mb with this errors , and with "$urow" that calls the username , what is wrong ? the functions are running well , its showing me the avatar of the user for ex : $urow['picture']" , but in the error log it's telling me : PHP Notice: Undefined variable: urow in another page . All my page's are includeing core.php , i have not redeclared $urow , because it is declared in core , i repeat , on every page not showing errors , only in the errorlog..scuze me for my bad english :)