0 && !isset($P_search)) $G_album = 1; } if (!$bird) { $bird = db_getVal("SELECT record_num FROM birds WHERE family='{$family}' AND deleted='N' AND display='Y' ORDER BY RAND() LIMIT 1"); } $searchStr = ''; if (isset($P_search)) { $words = explode(' ', stripslashes($P_search)); foreach ($words as $id => $w) { $w = mysql_escape_string(trim($w)); if ($w == '') unset($words[$id]); else $words[$id] = "(title LIKE \"%{$w}%\" OR description LIKE \"%{$w}%\")"; } if (count($words) == 0) $words[] = "1=0"; $searchSql = join(" AND ", $words); $bird = $family = 0; $searchStr = htmlentities(stripslashes($P_search)); $pageTitle = 'Search Results'; } if ($G_album) { $showAlbum = 1; $searchStr = ''; $bird = $family = 0; $pageTitle = 'Album Contents'; } if ($bird && $family && ($urlBird != $bird || $urlFamily != $family)) { $bcode = db_getVal("SELECT urlName FROM birds WHERE record_num='{$bird}'"); $fcode = db_getVal("SELECT urlName FROM families WHERE record_num='{$family}'"); redirect("/birds/{$fcode}/{$bcode}/"); } if ($bird && $family) { $r = db_query("SELECT * FROM birds WHERE record_num='{$bird}'"); extract(mysql_fetch_array($r, MYSQL_ASSOC), EXTR_PREFIX_ALL, 'seo_b'); $Custom_Meta_Title = $seo_b_seoTitle; $Custom_Meta_Description = $seo_b_seoDescription; $Custom_Meta_Keywords = $seo_b_seoKeywords; $pageTitle = "{$seo_b_name} Photographs"; if (!$Custom_Meta_Title) $Custom_Meta_Title = "{$seo_b_name} Photographs Global Wild Bird Photography and Photos of Birds"; if (!$Custom_Meta_Description) $Custom_Meta_Description = "Quality {$seo_b_name} photographs from Global Wild Bird Photography, specializing in " . "the marketing of quality photos of birds to the world of elite bird photographers."; $seo_b_name = strtolower($seo_b_name); if (!$Custom_Meta_Keywords) $Custom_Meta_Keywords = "{$seo_b_name} photographs, {$seo_b_name}, photographs, wild bird photography, wild, bird, photography, " . "photos of birds, photos, of, images, pictures, photographers, birding, book, collection, nature, field, " . "ornithologists, donald waite"; } ?>

Browse by Bird:

Search for a Specific Photo:

Your Album: