我正在尝试使用此代码更新数据库 skadate_profile 中的一行
if (!isset($_COOKIE["lastlogin"]))
{
setcookie("lastlogin", $current_cookie, mktime(23, 59, 59, date("m"), date("d"), date("y")) , "/", "", 0);
$result8 = mysql_query("UPDATE skadate_profile SET time_left = 600, cookie = '".$current_cookie."',todays_date = '".$todays_date."' where profile_id = '".mysql_real_escape_string($avconfig['siteId'])."' limit 1");
$cook = $_COOKIE["lastlogin"]; //users PC cookie
//echo "RESULT ", $result8;
//echo "Here setting cookie to ", $cook;
} else {
//echo "Cookie was prev set and is ", $cook;
}
$result8 给出的值为 1
有人可以帮助我吗?