please help me!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hazel.montano
    New Member
    • Jul 2006
    • 2

    #1

    please help me!!

    hi, i'm new here, i really hope that someone might be able to help me. i'm a new web developer and currently working on a project. ok, here goes, i'm required to make a module that will accept multiple file upload and store all the uploaded file in a single filed(i'm working on the CMS (content management system)). i have 2 tables here tablePages which contains details about all the basic pages in the website and the tablePageImage which will contain the multiple images and page number of which those images are uploaded. only selected pages are allowed to upload images, i'm done w/ that, my real problem is inserting those multiple images in a single field plus, i have to make a program w/c is class oriented, meaning all the logical functions of the program must be in the class, the program will just call upon that function. Plaese help me...thanx in advance!
  • hazel.montano
    New Member
    • Jul 2006
    • 2

    #2
    here is chunk of my code:

    //this code will only save the images in the dump folder named pages
    $path1= "../pages/".$_FILES['ufile']['name'][0];
    $path2= "../pages/".$_FILES['ufile']['name'][1];
    $path3= "../pages/".$_FILES['ufile']['name'][2];

    //copy file to where you want to store file
    copy ($_FILES['ufile']['tmp_name'][0], $path1);
    copy ($_FILES['ufile']['tmp_name'][1], $path2);
    copy ($_FILES['ufile']['tmp_name'][2], $path3);

    Comment

    Working...