I have the following line. It works fine but I want to add height and width to the image. How?
echo "<td>" . "<img src='img/" .$row['Foto'] . "'>" . "</td>";
I have the following line. It works fine but I want to add height and width to the 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
and height
attributes :
echo "<td>" . "<img width = '?' height = '?' src = 'img/" .$row['Foto'] . "'>" . "</td>";