This is what i could try out, as i didnt understand the scale thing, but ive onyl really been doing php a few days so i think this mite be a lil to advanced. Can you just help me out with the code as i dont have time to get this working cuz its the last thing i need to launch my site. Thanks man Greatly greatly appreciated. I dont even know were to start the code you gave me, so its prlly in the wrong area.
PHP Code:
<td width="350" align="center"><?
$maxwidth = 300;
$size = getimagesize("image1.php?id=<?php echo $row['urid'];?>");
if ($oldwidth > $maxwidth) {
$newwidth = $maxwidth;
$scale =
$newheight = $oldheight / $scale;
}
else { ($newwidth $$ $newheight = $oldwidth $$ $oldheight);
}
?>
<?php
if ($row['size']>0)
{
?>
<img src="image1.php?id=<?php echo $row['urid'];?>" border="0" />
<?php
}
else
{ ?>
<img src="images/comingsoon.gif" width="100" height="100" />
<?php
} ?>
Bookmarks