Beispiel #1
0
     $startdate = "0001-01-01";
 }
 if ($startmoney == "") {
     $startmoney = "0";
 }
 if ($endmoney == "") {
     $endmoney = "99999999999";
 }
 if ($keyword == "") {
     $stmt = $db->search($startdate, $enddate, $startmoney, $endmoney);
 } else {
     if ($category == "title") {
         $stmt = $db->searchTitle($keyword, $startdate, $enddate, $startmoney, $endmoney);
     } else {
         if ($category == "content") {
             $stmt = $db->searchContent($keyword, $startdate, $enddate, $startmoney, $endmoney);
         } else {
             if ($category == "name") {
                 $stmt = $db->searchOrg($keyword, $startdate, $enddate, $startmoney, $endmoney);
             }
         }
     }
 }
 while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
     $title = $row['title'];
     $org = $row['org'];
     $money = $row['money'];
     $date = $row['date'];
     $spider = $row['spider'];
     $id = $row["id"];
     echo <<<HTML