Results 1 to 2 of 2

Thread: photo in database

  1. #1
    Join Date
    Oct 2008
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default photo in database

    does anybody knows how i can introduce a photot in database with what camp and what commands?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    If you are trying to create photo gallery that is much different from just trying to associate one image with a record in a database.

    If the latter:
    You would first need to create a field inside the table to store the image path. It is much more efficient to store a path to an image, than the actual image data.
    Once you have created the record, add the field to the insert query that you are performing, and set it to the path of the image.

    If you are allowing user-input based images, you should be doing some validation to ensure the file being uploaded is actually an image, and that the file is within whatever dimensions and size restrictions you would like.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •