Jump to content

Images Problem


beboo002

Recommended Posts

Here my code is

====================================================

while($arow=mysql_fetch_array($result))

  {

if($arow[image]!='')

{

$temp_image=$arow['image'];

list($width, $height) = getimagesize("./images/$temp_image");

if($width>120)

{

$counter=(float)$width/120;

$width=120;

$height=(float)$height/$counter;

}

if($height>120)

{

$counter=(float)$height/120;

$height=120;

$width=(float)$width/$counter;

}

}

<a class="cat_heading" href="products-<?=$arow[name];?>-0.html" ><img src="images/<?=$arow[image];?>" width="<?=$width?>" height="<?=$height?>" border="0" align="absmiddle" ></a>==========================================================================

Link to comment
https://forums.phpfreaks.com/topic/101662-images-problem/#findComment-520181
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.