我有我的我的奇克勒数据库的成果清单,基本上列出我网站浏览的网页,并按日期分类。 现在,结果是微薄的,一切都分得。 页: 1
29/03/2012 09:18 页 次
29/03/2012 09:24 页 次 姓名
现在,我想要做的是,我是否能够改变格式,以便把结果列入这样的清单。
29/03/2012
姓名
姓名
30/03/2012
姓名
姓名
其中一个问题是,实地的日期是日期,不过,这只能使日期偏离变数,并使用这一日期,但我并不肯定如何列出上述结果。 以下是我目前的法典。
$query = "SELECT date, page_name FROM page_views GROUP BY date";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result)){
echo $row[ date ]. " - $". $row[ page_name ];
echo "<br />";