Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

php/mySQL file upload

Explorer ,
Jan 19, 2007 Jan 19, 2007

Copy link to clipboard

Copied

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
TOPICS
Server side applications

Views

464
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2007 Jan 19, 2007

Copy link to clipboard

Copied

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/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2007 Jan 19, 2007

Copy link to clipboard

Copied

Ive looked at that before but I do not see where it adds the file name to a mySQL database.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 20, 2007 Jan 20, 2007

Copy link to clipboard

Copied

LATEST
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/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines