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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -