#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    18
    Rep Power
    0
    I want to be able to upload pictures to my server on an admin form along with a lot of info about the item that the picture is of. I will then need to store the address of the newly uploaded file in mysql. I am using a webserver (phpwebhosting). I will be constantly uploading many items into my database like this so I need a convenient way like this to do it. I would prefer using php if possible since its what I am learning. please help!!??

    [This message has been edited by qweqwe (edited May 19, 2000).]
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    read webmonkey.com tutorials on php/mysql. that should give you some idea how to begin.

    peace on earth

    a.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    18
    Rep Power
    0
    Thanks, but I figured it out a while ago. Just incase anyone is trying to figure it out (since i can't find any other info on it on Devshed.com) this is what I used:

    in form file:

    <FORM action=upload.php method="post" enctype="multipart/form-data">

    Picture:<INPUT type="file" name="picture">

    </FORM>

    In (upload.php) file that sends the file:

    copy($picture, "../images/$num.jpg");


    (..images/$num.jpg can be whatever you want to call the file)

IMN logo majestic logo threadwatch logo seochat tools logo