I have the following code which i want to display the picture not the path. It is on php and
I’m getting the path from a database. I know how to do it on html but not on php
this is my code
echo"<th>ImagePath:</th> <td>".$row['imgPath'] . " </td></tr>";
how can i convert it so it shows the image and not the path? and make the heigh and width like 200
Any help is appreciated. thanks
Try this…
However see what you get for
echo $row['imgPath']. I think the path is incorrect and hence you don’t see image.Can you tell me what you get for
echo $row['imgPath']