Jump to content

waji134

New Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by waji134

  1. I am having problem in retrieving images.here is the code of displaying image

     

     

    $image_tmpname = $_FILES['file']['name'];

    //echo $image_tmpname ;

    $imgdir = "../wajahat_pro/uploads/"; //in this folder the images are saving

    $imgname = $imgdir.$image_tmpname;

     

    $query = "SELECT * FROM store WHERE id =30";

     

    $result = mysql_query($query);

     

     

    while($row = mysql_fetch_assoc($result))

    {

     

    echo $img=$row['name'];

    echo '<img src="' . $row['name'] . "' alt='' />";

     

    }

     

     

     

    the images are not displaying on the page.

×
×
  • Create New...