Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

showing images through recordset

New Here ,
Jun 17, 2009 Jun 17, 2009

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" />

TOPICS
Server side applications
459
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 17, 2009 Jun 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" />

Translate
LEGEND ,
Jun 17, 2009 Jun 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" />

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2009 Jun 17, 2009
LATEST

Thanks man thanks a lot it works great

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines