#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    25
    Rep Power
    0

    Uploading files and creating directory from stored database value


    hi guys,

    Im having trouble with this one, i want to upload files to a cirtain location and then in the location create a directory based on a database value. i cant seem to get the code to work though, any help?

    PHP Code:
    $path1"upload/('echo $row[2]')".$HTTP_POST_FILES['ufile']['name'][0]; 
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,452
    Rep Power
    594
    You don't say what is not working and few of us are clairvoyant. In any case I can see a couple of problems with your quotes. Substitution does not occur within single quotes. It is not at all clear what you are trying to do with "upload/('echo $row[2]')" or what you expect that to do.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo