Home how to display uploaded picture . php ,mysql
Reply: 0

how to display uploaded picture . php ,mysql

user676 Published in April 20, 2018, 10:47 am

hey guys i am stuck at very end point of my code , my aim was to Store image path to database and store the image to a directory. and than i want to show those images. i am successfully done uploading part but now i am stuck how can i show those images on my webpage, here is my code

  $sql    = "SELECT * FROM pictures";
  $result = mysqli_query($conn, $sql);
  $data   = mysqli_fetch_array($result,MYSQLI_ASSOC);

  while($row = mysqli_fetch_array($result))

   echo "img src=".$image_path."/".$image_name." width=100 height=100";
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303278 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO