"; exit; } ?> = DATE_SUB(NOW(),INTERVAL " . $recentdays ." DAY) order by qod.qod_date desc"; } else { if ($category <> 0) { $query = "select saying_id,author,saying,scategory_id from sayings where scategory_id = " . $category; } else { if ($person <> "" || $quotation <> ""){ if ($person <> "" && $quotation <> ""){ $query1 = new Query("OR", explode(" ",$person)); $query2 = new Query("OR", explode(" ",$quotation)); $querygen = new QueryGenerator(array($query1,$query2),true); $query = $querygen->GetQueryString("sayings", "author,saying", "saying_id,author,saying,scategory_id"); } else { if ($person <> ""){ $query1 = new Query("OR", explode(" ",$person)); $querygen = new QueryGenerator(array($query1),true); $query = $querygen->GetQueryString("sayings", "author", "saying_id,author,saying,scategory_id"); } else { $query2 = new Query("OR", explode(" ",$quotation)); $querygen = new QueryGenerator(array($query2),true); $query = $querygen->GetQueryString("sayings", "saying", "saying_id,author,saying,scategory_id"); } } //$query = $querygen->GetQueryString("sayings", "author,saying", "saying_id,author,saying,scategory_id"); } } /* else { print "You must enter something to search for.
"; print "
"; print ""; exit; } */ } //print $query; $resultid = mysql_query($query); $cnt = mysql_num_rows($resultid); if ($cnt > 0) print "" . $cnt . " Matches Found.
"; else print "No Matches Found.
" ?>