SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member MrLister's Avatar
    Join Date
    Feb 2001
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Upload Script

    I was wondering if anybody could help me make a upload script. I've tried everything and still can't get it.

    It's suppose to be by id. so if it's upload.php?id=2 it will do
    PHP Code:
    if ($id) {
    $screenshots mysql_query("SELECT review_name, review_id
                          FROM reviews_pc
                          WHERE review_id=
    $id");
     list(
    $review_name$review_id) = mysql_fetch_row($screenshots); 
    and the directory would be c:\\something\\$review_name\\

    so depending on the id the $review_name will change. I know how to make a simple upload script that will just do a little upload but this is too hard. Could somebody plz help me.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are we talking about uploading files through a browser, because all I see here is a query to retrieve data based on a id passed in the query string. What exactly are you trying accomplish?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    Non-Member MrLister's Avatar
    Join Date
    Feb 2001
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh it's fine. after struggling for another 5 hours and long chats on irc i finally got it


Bookmarks

Posting Permissions

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