HSU Library News Feed Current News Form the HSU Library http://library.humboldt.edu/ HSU Library = '$NDate' order by Priority DESC,unix_timestamp(StartDate) DESC"; $doGet=mysql_query($q); while($result = mysql_fetch_array($doGet)){ $result['ItemFull'] = str_replace("&","&",$result['ItemFull']); $result['PicAltText'] = str_replace("&","&",$result['PicAltText']); If ($result['Pic'] <> "") { $newsimg = "http://library.humboldt.edu/libnew/items/images/" . $result['Pic']; list($width, $height, $type) = getimagesize($newsimg); if (($width > 150) or ($height > 150)) { if ($width > $height) {$tmpPer = 150/$width;} else {$tmpPer = 150/$height;} $width=$width*$tmpPer; $height=$height*$tmpPer; } $result['ItemFull'] = "" . $result[" . $result['ItemFull']; } ?> <?=htmlentities(strip_tags($result['ItemBrief'],'ENT_QUOTES')); ?> http://library.humboldt.edu/newscurrent.html#