переменная $_COOKIE['login'] имеет значение Admin ( тамблица в Mysql существует!)
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\Ampps\www\up4top.pro\inc\core.php on line 26
<?php
/*Соединение с базой данных MySQL*/
$hostconnect='localhost';
$loginconnect='up4top.pro';
$passconnect='qaswqasw';
$db = mysql_connect ($hostconnect,$loginconnect,$passconnect);
$date=mysql_select_db('myserver',$db);
mysql_query('SET NAMES utf8',$db);
mysql_query('SET CHARACTER SET utf81',$db);
mysql_query('SET COLLATION_CONNECTION="utf8_general_ci"',$db);
// setcookie('login','admin', time() + 3600 * 24 * 365);
// setcookie('password','admin', time() + 3600 * 24 * 365);
if(isset($_POST['login']))
{
echo 1;
}
elseif(isset($_COOKIE['login']))
{
$floreLogin=$_COOKIE['login'];
$florePassword=$_COOKIE['password'];
$result = mysql_query("SELECT * FROM login WHERE login=$floreLogin");
$myrow = mysql_fetch_array($result);
//while ($myrow = mysql_fetch_array($result))
// {
// if($florePassword==$arris['password']) {$id=$arris['id'];}
// }
}
else{$id=0;}
header('Content-Type: text/html; charset=utf-8');
?>