Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
my image not showing...
dbname=image
table name=images
filedname= id, name, imagename

the below line is error
'; ?>

What I have tried:

HTML
<title>Display the Image
	<center>	
	   <table width="50%" border="1" cellpadding="5" cellspacing="5">
       <thead>
          <tr>
             <th>ID NO</th>
             <th>USER NAME</th>				 
             <th>IMAGE</th>				
         </tr>
       </thead>
       <tbody>
          <tr>	
              <td>  
              </td>	
              <td>  
              </td>
              <td> '; ?> 
              </td>
          </tr>
   	</tbody>
    </table>		
</center>
Posted
Updated 11-Nov-23 0:39am
v3

You are missing the opening <?php tag in your HTML. And you also need the code to put the actual image tag into the table: see HTML Images[^]
 
Share this answer
 
As Richard pointed out, your code will never run as you have a very important part missing that should load the image. As mentioned as well, you need php code to obtain the image from your server file using your path and image name specified in your data table, link it to an object say called '$MyImageToDisplayHere'.

The line of code will then look something like -

PHP
<td><?php echo $MyImageToDisplayHere; ?>


You should also learn how to format your code properly to make it easy for anyone else trying to read your code, as a starts see HTML formatting[^]
 
Share this answer
 
v3

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