• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 483
  • Last Modified:

PHP upload

Hi.

 I am a beginner to PHP. I use Dreamweaver for creating pages.  My question is:


  Is there an extension to use it with DreamWeaver ( free ) for upload and insert into mysql db ?

  I have a few text fields and i want to upload 2 photo's .  In mysql db will send only the path of uploaded picture. The picture will be uploaded into a site director.

  Any ideea ? Advice ? Thx
0
acidburn2003
Asked:
acidburn2003
1 Solution
 
dr_dedoCommented:
it is always adviced to save only file path into the db, not the file iteself, it is a much better practice and a much better resources saving, upload the images to some directory like /images/uploads for orgnizational purposes
0
 
neesterCommented:
I usually just have the auto ID and the filename in teh dbase.
then have a UPLOAD dir, and rename the file as the auto field...

so you end up with a dir with files:

1
2
3
4
5
6
7
8

and you link the Number with the filename.
:)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now