".$terms."
".$q; $headertext = "Search Results for: ".$terms2.""; $searchtype= "search"; } else { $q = "select id, showdate, date_format(showdate,'%Y-%m-%d') as date, striptitle from strips where showdate <= '".$today."' order by showdate desc"; $headertext = ""; $searchtype="list"; } $res = mysqli_query($mcon, $q); if (!$res) { $error = "error connection to DB: ".mysql_error(); } ?> The Daily Denada :: <? echo $info["striptitle"] ." - ".$nicedate; ?>
 
archive
".$error."
\n"; } else { if ($searchtype=="list") { $i = mysqli_num_rows($res); while ($arr = mysqli_fetch_array($res)) { echo "
".$i."
\n"; echo "
".$arr["date"]."
\n"; echo "
".$arr["striptitle"]."
\n"; echo "
\n"; $i--; } } else { $i = mysql_num_rows($res); if ($i == 0) { echo "no results"; } while ($arr = mysql_fetch_array($res)) { echo "
".$arr["date"]."
\n"; echo "
".$arr["striptitle"]." (".$arr["relevance"].")
\n"; echo "
".$arr["excerpt"]."
\n"; } } } ?>