amwd07 Posted September 18, 2007 Share Posted September 18, 2007 Hello Not sure if this is possible or I am going about this is the correct way <?php list($width, $height, $type, $attr) = getimagesize("images/makers/16/tn/anthologia-mis16-10.jpg"); echo "Image width " .$width; echo "<BR>"; echo "Image height " .$height; echo "<BR>"; echo "Attribute " .$attr; ?> what I would like to do is calulate all the image widths for the following recordset so each user would output a different value for example there is 16 images for mis_id 16 so the total width would be 2080px the reason I need this value is because I have a image scroller but this requires a width: as each members gallery will be different <?php $colname_gallery = "-1"; if (isset($_GET['mis_id'])) { $colname_gallery = $_GET['mis_id']; } mysql_select_db($database_mis, $mis); $query_gallery = sprintf("SELECT * FROM members_gallery WHERE user_id = %s", GetSQLValueString($colname_gallery, "int")); $gallery = mysql_query($query_gallery, $mis) or die(mysql_error()); $row_gallery = mysql_fetch_assoc($gallery); $totalRows_gallery = mysql_num_rows($gallery); $galleryimage=mysql_result($gallery,$i,"gallery_image"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/69759-getimagesize-loop/ Share on other sites More sharing options...
amwd07 Posted September 18, 2007 Author Share Posted September 18, 2007 Someone please help with this ??? Quote Link to comment https://forums.phpfreaks.com/topic/69759-getimagesize-loop/#findComment-350583 Share on other sites More sharing options...
amwd07 Posted September 18, 2007 Author Share Posted September 18, 2007 so no one can help with this Quote Link to comment https://forums.phpfreaks.com/topic/69759-getimagesize-loop/#findComment-350645 Share on other sites More sharing options...
BlueSkyIS Posted September 18, 2007 Share Posted September 18, 2007 what is the question? what errors are you seeing or how is the script not functioning correctly? Quote Link to comment https://forums.phpfreaks.com/topic/69759-getimagesize-loop/#findComment-350650 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.