in this code: print "<center><td><img src='".$info['image'] . "' ></a></td></center> "; Code (markup): how do i make the code resize the image to width="640" height="480" thanks
print "<center><td><img src='".$info['image'] . "' width='640' height='480'></a></td></center> "; Code (markup): hope this helps
If you are only dealing with standard formats, like gif, jpg, tiff, bmp, etc., you should consider using getimagesize. This will return the actual height and width, which you can then include as height and width values as the other posters mentioned. That way you don't have to constantly look up the image sizes, and if they change, your page will automatically update. The only downside is if you are trying to show an image and force the dimensions to be something other than the actual values.