Click here to Skip to main content
15,665,718 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to display image but it just show me blank images with out the image but if i echo the columns outside it show me the image name

<img src="../uploads/<?php echo $rows['image_path']; ?>" style='width:100%; height:100%;'  >

What I have tried:

But I remove I from Img to make it visible

<img src="../uploads/<?php echo $rows['image_path']; ?>" style='width:100%; height:100%;'  >

but only Image Tag appear not an image from database
Updated 7-Mar-23 4:10am
Richard Deeming 7-Mar-23 9:27am    
Nobody can help you fix a problem with code we cannot see, running against a database we cannot access, displaying images from a file-system we also cannot access.

Click the green "Improve question" link and update your question to include a clear and complete description of the problem. Include the relevant parts of your code, a sample of your data, and an explanation of where the images are stored relative to your page.
Ibrahim Hassan 1234 7-Mar-23 9:33am    
I forget to indent it but know i Update it thanks.

1 solution

You don't want a comma (,) in your image source path.
Share this answer
Ibrahim Hassan 1234 7-Mar-23 9:51am    
i remove the comma but still image not display please help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900