PHP upload

Posted on 2006-06-02
Last Modified: 2008-03-06

 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
Question by:acidburn2003
    LVL 16

    Accepted Solution

    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
    LVL 11

    Expert Comment

    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:


    and you link the Number with the filename.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now