I've got a question about the syntax of this code. I'm tinkering around with resizing images. This is the code that apparently figures out how to keep the dimensions proportional.PHP Code:$ratio = ($width > $height) ? $th_max_width/$width : $th_max_height/ $height;
However, the question mark is really throwing me off.
I'll take a stab at this one just to see if I'm right or even close.
Well, that's not it. It's clear that this is some kind of ratio (DUH!). Hmm.HTML Code:If ($width > $height) {$th_max_width/$width } else {$th_max_height/ $height; }
Brandon








Bookmarks