Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts

    Uploading via form to Mysqlwith php

    Hey,
    err is there any premade scripts on hotscripts that`ll do this? i looked without sucess...if not can someone chuck me some tutoirals on how to do this type of thing,
    iam trying to work out a script that is a html form ...and you type your name, email, you make a selctio from a drop down and then click a browse button to find file on your pc then upload it....then the info is sent to mysql in a table called *uploads* ... er can someone get me started or summut?
    thanks alot
    Jee yeh see php
    sir p

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Actually, I'm trying to do a similar thing. The concept I'm going to use is as follows:

    1) upload the file to the temp directory (as specified in the php.ini file)

    2) copy the file from the temp directory to the members directory.

    3) save the path to the file in the database. (ie "/usr/web/html/members/sir_pannels/file.ext" into a field named filePath)

    I'm not too big on actully trying to put the file INTO the database itself.

    Hope this helps.

  • #3
    Regular Coder
    Join Date
    May 2002
    Location
    London, England
    Posts
    369
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll have a go at making this later on for you guys... busy at the moment..

    try looking on phpbuilder.com for an upload script, i have an upload class here somewhere.. but if you don't know what a class is.. i'd recommend not using it If you still want it, lemme know.. drop me an email

    Jee
    Jeewhizz - MySQL Moderator
    http://www.sitehq.co.uk
    PHP and MySQL Hosting

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is a script that allows you to upload files:

    http://www.ipdg3.com/sourcecoderesul...code&id=000254

    Good luck
    wabirdman


  •  

    Posting Permissions

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