这是我的分页脚本,为我的电视指南项目提取信息,我正在工作。目前,在PHP/MySQL成为一个生产站点之前,我一直在试验它。
这是我现在的剧本:
<?php
include("pmcPagination.php");
$paginator = new pmcPagination(20, "page");
mysql_connect("localhost","root","PASSWORD");
mysql_select_db("mytvguide");
//Select only results for today and future
$result = mysql_query("SELECT programme, channel, airdate, expiration, episode, setreminder
FROM lagunabeach
WHERE expiration >= now()
ORDER BY airdate, 3 ASC
LIMIT 0, 100;");
//You can also add results to paginate here
mysql_data_seek($queryresult, 0);
while($row = mysql_fetch_array($result)) {
$paginator->add(new paginationData($row['programme'],
$row['channel'],
$row['airdate'],
$row['expiration'],
$row['episode'],
$row['setreminder']));
}
//Show the paginated results
$paginator->paginate();
include("pca-footer1.php");
//Show the navigation
$paginator->navigation();尽管我今天播出的节目有两张唱片,但它只显示了第二个节目的记录--英国时间格林尼治时间晚上8:35分播出的节目没有播放,但晚些时候的英国时间格林尼治时间( one )播放了11点25分。
我该怎么解决这个问题?以上是我的代码,如果有任何用处的话!
谢谢
发布于 2010-05-28 18:58:27
选择节目、频道、播出日期、到期时间、插曲、播音器等,其中到期>=现在()按播出日期订购,3 ASC限制为0,100;
您要按同一列订购两次。airdate和3是sql select语句中的同一列。
https://stackoverflow.com/questions/2931671
复制相似问题