How to add height and width in a PHP script? -
i have following line. works fine want add height , width image. how?
echo "<td>" . "<img src='img/" .$row['foto'] . "'>" . "</td>";
you can use style
attribute :
echo "<td>" . "<img style = 'width:?;height:?' src = 'img/" .$row['foto'] . "'>" . "</td>";
or width
, height
attributes :
echo "<td>" . "<img width = '?' height = '?' src = 'img/" .$row['foto'] . "'>" . "</td>";
Comments
Post a Comment