我在下面的代码中运行它,但它返回一个错误:"undefined index: value"
$two_tier= mysql_query("
SELECT Count(1)
FROM(
SELECT `login_id`
FROM `data`
WHERE Year(`start_at`) = Year(Date_sub(Now(), INTERVAL 1 month))
AND Month(`start_at`) = Month(Date_sub(Now(), INTERVAL 1 month))
AND end_at > Date_add(start_at, INTERVAL 5 minute)
GROUP BY `login_id`
HAVING Count(`login_id`) > 1
) AS Value
");
$two_cnt = mysql_fetch_assoc($two_tier);
echo $two_cnt['value'];
我试图获得“价值”。一点帮助,请。