0) { $rs=mysql_fetch_assoc($result); $cookie['nickname']=$rs['nickname']; $cookie['id']=$rs['id']; $cookie['type']=$rs['type']; } else { setcookie("remuser", "", time()-3600, "/"); $cookie['nickname']=false; } ?> Problems in query. Access denied for user ''@'localhost' (using password: NO)