I am trying to make a working script with LOGIN and REGISTER, and i can't read user information after he logged in.
I am using cookies to make sure he is "online" and he is, everything is working good.
The problem is that i can't read his information, don't know why.
$sql = "SELECT mod FROM korisnici where user = "'.$_COOKIES['username'].'"";
And if i put cookies['username']
instead of admin(real username)
, still doesnt work.
I am trying to get only MOD.