www.webdeveloper.com
Results 1 to 7 of 7

Thread: [RESOLVED] Downloading

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    88

    resolved [RESOLVED] Downloading

    Hey Everyone,

    I've been creating a few pages that allow users to upload the own work / images / docs etc which works fine but.... I want them to be able to view their uploads and have the option to download them again if they wanted.

    I've experimented with putting links in and but it just brings up the directory.

    Code:
    $image_viewer = "SELECT * FROM files WHERE username='$_SESSION[username]'";
    
    $show_image = mysql_query($image_viewer);
    PHP Code:
    echo "<a href='uploads/$info'>";

    while(
    $info mysql_fetch_array($show_image))

        {
        
        
        
        echo 
    $info['filename'] . " " $info['name']; echo "<br/>";
      echo 
    "<br>";



    }
     echo 
    "</a>"
    The above just brings up a list of files.

    This is just an experiment for my own knowledge but I would like to get it working so all help is appreciated!!
    Last edited by swl7; 07-10-2013 at 10:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles