Gilly79 Posted December 15, 2009 Share Posted December 15, 2009 Wow tougne twister! Ive got a bit of a problem with sizing images! Im returning a picture from my mysql database and im having some trouble rezizing the image on its return from the database. I want them all to be the same size - say 50x50 but I cant seem to get the parameters set up correctly and get errors.. When i take the sizeing out the images are returned in their original format (any size) Here it is below echo "<tr>"; echo "<td class=BorderMeRed>".$row["Eventname"]."</td>"; echo "<td class=BorderMeRed>".$row["Description"]."</td>"; echo "<td class=BorderMeRed>".$row["Clubbar"]."</td>"; echo "<td class=BorderMeRed>".$row["Town"]."</td>"; echo "<td class=BorderMeRed>".$row["Location"]."</td>"; echo "<td class=BorderMeRed>".$row["Ticket"]."</td>"; echo "<td class=BorderMeRed>".$row["Website"]."</td>"; echo "<td class=BorderMeRed>". "<img src=http://dj-info.netai.net/images/" width="50" height="50" . $row["Pic"] ." /> <br>"; echo "</tr>"; } echo "</table>"; } Can anyone pleeeeeeeeease help? Quote Link to comment https://forums.phpfreaks.com/topic/185283-sizeing-issue-on-a-returned-php-variable-field-in-a-table/ Share on other sites More sharing options...
sasa Posted December 15, 2009 Share Posted December 15, 2009 try echo "<td class=BorderMeRed>". "<img src=\"http://dj-info.netai.net/images/" . $row["Pic"] ."\" width=\"50\" height=\"50\" /> <br>"; Quote Link to comment https://forums.phpfreaks.com/topic/185283-sizeing-issue-on-a-returned-php-variable-field-in-a-table/#findComment-978087 Share on other sites More sharing options...
Gilly79 Posted December 15, 2009 Author Share Posted December 15, 2009 YOu legend!! thank you Quote Link to comment https://forums.phpfreaks.com/topic/185283-sizeing-issue-on-a-returned-php-variable-field-in-a-table/#findComment-978112 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.