Skip to main content
Inspiring
Nov 18, 2006 8:02 PM UTC
Answered

Uploading images for a mySQL / PHP database

Hopefully this can be done - I'm working on a site that uses a simple mySQL database, where the records include an image.

I have the form to add records, including the field containing the file name - but is it also possible to upload the actual file using the same form to their folder, or does that need to be done separately using FTP software?

The idea is for my client to be able to as easily as possible add / delete / edit records himself, so clearly getting the actual images uploaded at the same point he adds records to the database would be great if that's possible.

Cheers,
Iain
This topic is closed to new replies. Start a new post to keep the conversation going.
johngordon12Correct answer
Inspiring
Nov 19, 2006 9:48 AM UTC
Cheers - I found a site explaining what to do on the PHP page the form points to.

Iain

11 replies

Inspiring
Nov 18, 2006 9:01 PM UTC
On 18 Nov 2006 in macromedia.dreamweaver.appdev, Iain71 wrote:

> I have the form to add records, including the field containing the
> file name - but is it also possible to upload the actual file using
> the same form to their folder, or does that need to be done
> separately using FTP software?

php.net's treatment of this is good:

http://www.php.net/manual/en/features.file-upload.php

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Translate
Inspiring
Nov 18, 2006 10:43 PM UTC
Cheers for that - not sure exactly what I need to do tho' - it says to replace the --URL-- with a .php file, but I want the uploaded file to end up in my images folder - how do I specify it to go into there?

Iain
Translate