我正在使用此代码:
<?php
if(isset($_POST['limit'])){
$limit = 10;
require_once("inc/conn.php");
$sqlStringNotes = "SELECT * FROM tblsermons where (Campus = 'Prior Lake' or Campus = 'Shakopee') and SermonPath <> 'nextweek' order by date1 desc limit $limit";
$queryNotes = mysql_query($sqlStringNotes) or die (mysql_error());
while ($row = mysql_fetch_array($queryNotes)) {
echo "{$row["Date2"]} - {$row["Title"]} - {$row["Pastor"]} <br>";
}
}
?>
在此页面上,结果显示两次。你能告诉我为什么吗? http://www.friendship-church.org/mobileapp/#notes