Skip to main content
Known Participant
June 17, 2009
Answered

showing images through recordset

  • June 17, 2009
  • 1 reply
  • 457 views

well I have created a recordset and I have a row in it for images named visual and I want the images to be displayed on the pages dynamically the images will be displayed with respect to the id value got from the url

And i want the images to be of a specific dimension width=300 and height=200 can someone plz help me this is the code that I m using now but the problem is that the page only shows the alt text which in this case is Images.

     <img src=_post_images/"<?php echo $row_Recordset1['visual']; ?>" width="300" height="200" alt="Images" />

This topic has been closed for replies.
Correct answer David_Powers

     <img src=_post_images/"<?php echo $row_Recordset1['visual']; ?>" width="300" height="200" alt="Images" />

The quotes in your src attribute are in the wrong place. Assuming the name of the folder where the image are kept is _post_images, your code should look like this:

<img src="_post_images/<?php echo $row_Recordset1['visual']; ?>"

width="300" height="200" alt="Images" />

1 reply

David_Powers
David_PowersCorrect answer
Inspiring
June 17, 2009

     <img src=_post_images/"<?php echo $row_Recordset1['visual']; ?>" width="300" height="200" alt="Images" />

The quotes in your src attribute are in the wrong place. Assuming the name of the folder where the image are kept is _post_images, your code should look like this:

<img src="_post_images/<?php echo $row_Recordset1['visual']; ?>"

width="300" height="200" alt="Images" />

adi3199Author
Known Participant
June 17, 2009

Thanks man thanks a lot it works great