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

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -