$row['bf_height']) { if($row['bf_width'] > $_w) { $w = $_w; $h = floor($row['bf_height'] * $_h / $row['bf_width']); } else { $w = $row['bf_width']; $h = $row['bf_height']; } } else { if($row['bf_height'] > $_h) { $w = floor($row['bf_width'] * $_h / $row['bf_height']); $h = $_h; } else { $w = $row['bf_width']; $h = $row['bf_height']; } } ?>

'PROGRAM > PHP' 카테고리의 다른 글

shuffle  (0) 2013.03.21
특정문자를 바꾸기  (0) 2013.03.18
PHP EUC-KR, UTF-8 치환 iconv  (0) 2013.01.22
PHP 랜덤함수  (0) 2013.01.16
switch문 기초  (0) 2013.01.11