How to display an image that I uploaded to a folder in a server? I am using php and mysql, in the data base is saved just the name of the picture -
0) { while ($row = mysqli_fetch_row($result3)) { echo "">" } } ?>
hi said have uploaded image , want show same. in case should use tag src being path/to/imagefolder/name of image stored in db
like have fetched data perticular user
<table border="1"> $sql="select * tbl_name"; $result = mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> <tr> <td><?php echo $row['name'] ?></td> <td><?php echo $row['password'] ?></td> <td><?php echo $row['username'] ?></td> <td><img src="logo/<?php echo $row['file_name']?>"></td> </tr> <?php } ?> </table>
Comments
Post a Comment