How to save image to mysql database in php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajeshkumarswain
    New Member
    • Sep 2008
    • 1

    How to save image to mysql database in php?

    hi friends,

    I am new in php and i am trying to save image to database. Please provide a sample.
  • surajhs
    New Member
    • Jul 2008
    • 13

    #2
    Hey why you want to store image in database just store name or path and place that name in image tag through fetching records.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by surajhs
      Hey why you want to store image in database just store name or path and place that name in image tag through fetching records.
      Sometimes it can be more efficient to store the image in a BLOB data type.

      Hey there, Rajesh.

      Check out this sweet howto that our great Atli wrote.

      Cheers.

      Comment

      Working...