setcookie("login","$login",time()+86400); setcookie("senha","$vsenha",time()+86400); include ("../config.php"); $conn = mysql_connect($host,$id,$senha); mysql_select_db($db,$conn); $query=mysql_query("SELECT * FROM auth WHERE login='$login';",$conn); $block=mysql_fetch_row($query); mysql_close($conn); ?>