Skip to main content
Inspiring
January 19, 2007
Question

php/mySQL file upload

  • January 19, 2007
  • 3 replies
  • 497 views
I need to let a user upload a file to a folder placed on my site, then put the file name with the directory of the image on the server. I made a table in mySQL with the following: id and image. The file directory would be in the following folder ../coupons. Any Help is appriciated. PHP/mySQL
This topic has been closed for replies.

3 replies

Inspiring
January 20, 2007
justin wendorf wrote:
> Ive looked at that before but I do not see where it adds the file name to a mySQL database.

You need to code that separately.

http://www.php.net/manual/en/ref.mysql.php

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
January 20, 2007
Ive looked at that before but I do not see where it adds the file name to a mySQL database.
Inspiring
January 19, 2007
justin wendorf wrote:
> I need to let a user upload a file to a folder placed on my site, then put the
> file name with the directory of the image on the server. I made a table in
> mySQL with the following: id and image. The file directory would be in the
> following folder ../coupons. Any Help is appriciated. PHP/mySQL

Start here:

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

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/