$value){ if(strlen($value) <=0){ removeArrayElement($favorites,$key); } if($value == $item){ removeArrayElement($favorites,$key); } } $favorites =array_values($favorites); setcookie("thewarFavorites",implode(",", $favorites)); } ?> THE WAR . Search & Explore . Favorites | PBS
Favorites
divider
New Search
The Favorites tool allows you to collect photos, video clips, and artifacts from this web site. As you search and explore THE WAR’s online database you can add items to your personal collection.
$value){ if(strlen($value) <=0){ removeArrayElement($favorites,$key); } } if(count($favorites)>0){ foreach ($favorites as $obj_id){ $SQL = " SELECT distinct mo.objects_id, mo.objects_title, mo.objects_name, mo.objects_filename, mo.objects_credit_source, mo.objects_fm_negative_number, mo.objects_type, mo.objects_description, mo.objects_bio, mo.objects_enlargement, jom.media_id FROM tbl_main__objects mo LEFT JOIN tbl_join__objects_media jom ON mo.objects_id = jom.objects_id LEFT JOIN tbl_join__objects_towns jot ON mo.objects_id = jot.objects_id LEFT JOIN tbl_join__objects_battles tjb ON mo.objects_id = tjb.objects_id LEFT JOIN tbl_join__objects_subjects tjos ON mo.objects_id = tjos.objects_id LEFT JOIN tbl_look__media tlm ON jom.media_id = tlm.media_id LEFT JOIN tbl_look__towns tlt ON jot.towns_id = tlt.towns_id LEFT JOIN tbl_look__battles tlb ON tjb.battles_id = tlb.battles_id LEFT JOIN tbl_look__subjects tls ON tjos.subjects_id = tls.subjects_id WHERE mo.objects_id = $obj_id"; $result = mysql_query($SQL) or die('

Query failed: ' . mysql_error() . "

Qurey:$SQL
line:" . __LINE__); $num_rows = mysql_num_rows($result); if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; }; $numperpage=20; $P = new Pager($SQL, $numperpage, $page); $i=1; while($row=$P->getpagerow()) { $objects_id = trim($row['objects_id']); $objects_title = trim($row['objects_title']); $objects_filename = trim($row['objects_filename']); $objects_credit_source = trim($row['objects_credit_source']); ($objects_credit_source!='')? $objects_credit_source='Source: '.$objects_credit_source:NULL; $objects_fm_negative_number = trim($row['objects_fm_negative_number']); if($objects_fm_negative_number!=''){$objects_fm_negative_number = "($objects_fm_negative_number)";}else{NULL;}; $objects_name = trim($row['objects_name']); $objects_enlargement = trim($row['objects_enlargement']); $objects_type = trim($row['objects_type']); $media_id = trim($row['media_id']); $objects_description = trim(($row['objects_description'])); $objects_bio = trim(($row['objects_bio'])); // SET TITLE BASED ON TYPE - - - -> ($objects_name=='')? $objects_name='No title in database':NULL; ($objects_title=='')? $objects_title='No title in database':NULL; ($objects_description=='')? $objects_description='
No description in database
':NULL; if(is_file("images/objects/search/{$objects_filename}.jpg")){ $image_str = "{$objects_title}"; }else{ $image_str = ""; } $icon_image_str = "{$objects_title}"; ?>
 
You currently do not have any favorites