我不确定为什么会这样。我在这里阅读了一些解释,但我自己似乎找不到。
在我的网站的系列和剧集列表中,我在回显结果时缺少第一行。解决此问题的任何帮助都会很棒。
这是剧集页面的编码
<?php include '../connect/dbseries.php' ?>
<?php $result2 = mysql_query("SELECT
seriesID,
seasonindex,
sortname,
thumbfilename,
CurrentBannerFilename,
PosterBannerFileName,
summary,
IMDB_ID,
episodename,
episodeindex,
compositeid
FROM Series
WHERE seriesid = '$_GET[id]'
order by Seasonindex, Episodeindex ASC;");
if (!$result2) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row2 = mysql_fetch_row($result2);
//setup array
$ID = $row2['0'];
$seasonindex = $row2['1'];
$Sortname = $row2['2'];
$thumb = $row2['3'];
$Bannerfilenames = $row2['4'];
$currentbanner = $row2['5'];
$Summary = $row2['6'];
$imdb = $row2['7'];
$EN = $row2['9'];
$Eid = $row2['9'];
$cid = $row2['10'];
while($row=mysql_fetch_array($result2)){
echo '<br /> <a href="seriesinfo.php?id='.$row['compositeid'].'"><img src="../images/series/'.$row['thumbfilename'].'" width="200" height="200"></a> "'.$row['summary'].'" "'. $row['episodename'] .'" "'. $row['episodeindex'] .'"' ;
}
?>