'; } $output[] = ''; $items = explode(',',$favorites); foreach ($items as $item) { // get item from the database $item = $mysqli->real_escape_string($item); // protect against hacking $result = $mysqli->query ("SELECT * FROM `photo` WHERE name='$item';"); if (!result) continue; $value = $result->fetch_object(); // Display: thumbnail (link), Title (link), Delete $url = photoURL($value->name, $value->urlkeyword); $output[] = ''; $output[] = ''; $output[] = ''; $output[] = ''; $result->free(); $url_list .= $value->desc . ', ' .$value->location . ': '; $url_list .= 'http://shadesofgreenphoto.com/' . $url .' '; } $output[] = '
'; $output[] = ''.$value->desc.''; $output[] = '
'; $output[] = '"'.$value->desc.'"
'.$value->location.'
'; $output[] = 'Remove'; $output[] = '
'; // Add e-mail link $output[] = '
To e-mail a list of URLs of these images, copy and paste this text into the body of your e-mail:
'; $output[] = 'Hint: Use CTL-A to select the box contents, then CTL-C to copy the text (on a PC)

'; $output[] = ''; } else $output[] = '
Sorry - you have not selected any Favorites (yet).

Click Favorites when viewing photos to add them to your Favorites list.


'; return join('',$output); } ?> \n"; echo "\n"; echo "".$webtitle."\n"; ?> ////////// Page-specific Content starts HERE /////////////// ?>

Your Favorites

(Note: Favorites will be cleared if you close your browser)

close(); ?>