我正在使用以下查询来获取结果,我坚持以我将结果传递给数组并将其发布到 twitter 任何提示的格式打印结果
$query = "SELECT CONCAT('#', hashtag) AS hashtag, sum(count) as total
FROM `trending_topics` WHERE lang=1 and hashtag != '' and
date >= date_sub(left(now(), 10), interval 2 day) group by hashtag
order by total desc LIMIT 0, 3";
$message = mysql_fetch_row($query);
$tweet->post('statuses/update', array('status' => "Trending topics $message"));