为什么我的信息显示两次?

时间:2014-05-22 16:19:03

标签: php while-loop

我正在使用此代码:

<?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

0 个答案:

没有答案