6){ $pid=99; } //SET COLUMN WIDTH $maxwidth = ($scrwidth - 230); // GET PHOTO INFO $query = "SELECT filename, link_name, description, DATE_FORMAT(evdate, '%b, %Y') as emdate FROM cd_photos WHERE pid='$pid' AND publish=1"; $result = mysql_query($query) or die('Error, query failed'); $row = mysql_fetch_assoc($result); $filename = $row["filename"]; $link_name = $row["link_name"]; $evdate = $row["emdate"]; if($evdate != ""){ $evdate = "$evdate"; } $description = CleanupOddChars($row["description"]); if(strlen($description) > 4){ $description = "$description"; } else { $description = "
No additional information available for this photo
"; } // PRINT Photos TITLE IF ANY $size = getimagesize("photos/$filename"); if($size[0] > $maxwidth){ $picwidth = $maxwidth; } else { $picwidth = $size[0]; } ?>


 

 

', $text); // right single guillemet $text = str_replace(chr(156), 'oe', $text); // oe ligature $text = str_replace(chr(159), 'Y', $text); // Y Dieresis $text = str_replace(chr(228), 'ä', $text); // a umlaut $text = str_replace("\n", '
', $text); // a umlaut $text = stripslashes($text); return $text; } ?>