Quotes

This is a small collection of quotes selected by the Nanday.com staff. For broader seaches, enter part of a word. For example, if you enter buddh, it will find quotes by Buddha, and also Buddhist proverbs. Your search will be performed on the quotes, authors, and keywords. To see the entire list, leave the search field blank, or click here. Or you may see a list of all of the authors. Special collections include quotes about vegetarianism and quotes by and about artists. There are currently

Search quote database for:
Enter term(s) to search for, separated by spaces or commas.

Find one OR more keywords   
Find each AND every keyword

Or you may view a quote selected at random. "; #if (isset($q) && # ($HTTP_REFERER=="" || substr($HTTP_REFERER,0,24)=="http://nanday.com/quotes" || substr($HTTP_REFERER,0,28)=="http://www.nanday.com/quotes")) if (isset($q) && ($HTTP_REFERER=="" || substr($HTTP_REFERER,0,18)=="http://nanday.com/" || substr($HTTP_REFERER,0,22)=="http://www.nanday.com/" || substr($HTTP_REFERER,0,29)=="http://70.98.54.28/~nandayco/" )) { if ($q=="@" && $f=="" && $l=="") { # --- LIST AUTHORS print "


Authors:

"; print ""; print ""; print "$current  |  "; } } print ""; print "
"; $prev=""; $result = mysqlq("SELECT firstname, lastname FROM quotes order by lastname, firstname"); while ($row = mysql_fetch_array($result)) { $f=str_replace(" ", " ", ltrim($row["firstname"])); $l=str_replace(" ", " ", ltrim($row["lastname"])); #$current=str_replace(" ", " ", ltrim($row["firstname"] . " " . $row["lastname"])); $current=$f . " " . $l . ""; if ($current!=$prev) { $prev=$current; # print "
$current
"; } else { if ($q=="~") # --- RANDOM { srand((double)microtime()*1000000); do { $num=rand(1, $numquotes); $result = mysqlq("SELECT * FROM quotes where num=$num"); } while (mysql_num_rows($result)==0); print "


Your random quote:"; } elseif ($q=="@") # --- SPECIFIC AUTHOR { $result = mysqlq("SELECT * FROM quotes where firstname='$f' and lastname='$l' order by quote"); print "


Quotes by " . StripSlashes($f . " " . $l) . ":"; } else { # --- KEYWORDS $q=trim($q); #kill leading & trailing spaces # $item=preg_split("/[^a-zA-Z'-]+/", $q); #split search string, delimiting by "non-alpha" characters $item=preg_split("/[ ,]+/", $q); #split search string, delimiting by space or comma $query=""; $q=""; if ($type!="OR" && $type!="AND") $type="OR"; for ($i=0; $i"; print "


Your search for \"" . StripSlashes($q) . "\":"; } print ""; if (mysql_num_rows($result)==0) {print "


Sorry, no quotes were found. Try a broader search term.";} while ($row = mysql_fetch_array($result)) { print "

"; } print "


" . $row["quote"] . "
          -  " . ltrim($row["firstname"] . " " . $row["lastname"]); if ($row["info"]!="") print ", " . $row["info"]; print "

"; } } ?>


If you know any worthy quotes which you would like to be considered for inclusion
in the database, please send them, or any comments or suggestions, to us.