3 thoughts on “Complete PHP User Login and Registration System with image upload

  1. Ayesha M. Withana Arachchi

    dear Admin I need to View Sql Data(images) in horizontal same line.

    my source code is as follows please help me:

    runQuery(“SELECT * FROM `tbl_image` ORDER BY ‘id’ ASC “);
    if (! empty($query)) {
    foreach ($query as $key => $value) {
    ?>

    <img src="”/>

    <img src="width=”96px” height=”56px”/>

    Reply
    1. Bikash Post author

      Hi,
      Please check this. If anything else please let me know.

      <?php
      $qry = mysqli_query(“SELECT * FROM `tbl_image` ORDER BY ‘id’ ASC”);
      while($f=mysqli_fetch_assoc($qry)){ ?>
      <img src=”image_directory_loaction/<?php echo $f[‘image.png’];?>” width=”96px” height=”56px”>
      <?php } ?>

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *