Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-19-2002, 04:22 PM   PM User | #1
sir pannels
Regular Coder

 
Join Date: Jun 2002
Posts: 905
Thanks: 23
Thanked 5 Times in 5 Posts
sir pannels is an unknown quantity at this point
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
sir pannels is offline   Reply With Quote
Old 06-24-2002, 07:34 PM   PM User | #2
bcarl314
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
bcarl314 will become famous soon enough
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.
bcarl314 is offline   Reply With Quote
Old 06-24-2002, 08:57 PM   PM User | #3
Jeewhizz
Regular Coder


 
Join Date: May 2002
Location: London, England
Posts: 369
Thanks: 0
Thanked 0 Times in 0 Posts
Jeewhizz is an unknown quantity at this point
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
Jeewhizz is offline   Reply With Quote
Old 06-25-2002, 02:51 AM   PM User | #4
wabirdman
New Coder

 
Join Date: Jun 2002
Location: Australia
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
wabirdman is an unknown quantity at this point
Here is a script that allows you to upload files:

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

Good luck
wabirdman
wabirdman is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Advertisement
Log in to turn off these ads.