rdub Posted October 10, 2008 Share Posted October 10, 2008 This code works fine for showing the image through an image link. I'd like to include height and width for the image. Quote Link to comment https://forums.phpfreaks.com/topic/127877-image-link-height-and-width/ Share on other sites More sharing options...
rdub Posted October 10, 2008 Author Share Posted October 10, 2008 Sorry, this is the code <?php $display = 2; $cols = 0; echo "<table class=sample width=556 align=left valign=top>"; while($fetched = mysql_fetch_array($result)){ if($cols == 0){ echo "<tr>\n"; } // put what you would like to display within each cell here "<tr>\n"; echo "<td width=370 valign=top>".$fetched['id']."<br />"."<span class=style1>"."<strong>".$fetched['Customer']."</strong>". ("<img src='" . $fetched['Image'] . "' />") . "<br />"."<span class=style1e>".$fetched['hi_lite']."</span>". Quote Link to comment https://forums.phpfreaks.com/topic/127877-image-link-height-and-width/#findComment-662074 Share on other sites More sharing options...
fenway Posted October 11, 2008 Share Posted October 11, 2008 I'm sorry, whats the DB issue? Quote Link to comment https://forums.phpfreaks.com/topic/127877-image-link-height-and-width/#findComment-662888 Share on other sites More sharing options...
AndyB Posted October 11, 2008 Share Posted October 11, 2008 See http://ca.php.net/manual/en/function.getimagesize.php and use the third array element for height/width And it's a php issue, not MySQL. so I'll move it for you. Quote Link to comment https://forums.phpfreaks.com/topic/127877-image-link-height-and-width/#findComment-662932 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.