Jump to content


Photo

how can i display images from DB


  • Please log in to reply
4 replies to this topic

#1 Melz6682

Melz6682
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 15 May 2006 - 07:59 PM

I am a newbie to php and mysql. i have a questions.

What's the best way to save images to my database and display them into my php page. I created a page www.it2o.com/nadir4, and there are articles that display images within them, so how can i save my images through an upload form, then post them to the database and from there display them into the page? . I created an upload page www.it2o.com/nadir4/upload_info.html
Thanks alot...your help is appreciated


#2 rburch

rburch
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 16 May 2006 - 05:57 AM

You can not store images in a database, just their names. You can then reference them by the name you have in the database. Make sense?
"...there's a difference between knowing the path and walking the path." - The Matrix

#3 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 16 May 2006 - 02:42 PM

Yes. However, there is a way to store files into the database; I just don't know how, and Dreamweaver can't do it.
Disclaimer: No matter how harsh I may be, I'm always IMO only.

#4 BlkShodan

BlkShodan
  • New Members
  • Pip
  • Newbie
  • 1 posts
  • LocationWashington, DC

Posted 25 May 2006 - 09:44 PM

[!--quoteo(post=374294:date=May 16 2006, 10:42 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 16 2006, 10:42 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Yes. However, there is a way to store files into the database; I just don't know how, and Dreamweaver can't do it.
[/quote]

Just like pictures - you store references to files in your database. Unless you want to use a memo field to store large blocks of information.


#5 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 25 May 2006 - 11:23 PM

That's kinda what I just said. You can store the references, but with Dreamweaver, you can't show the images themselves.
Disclaimer: No matter how harsh I may be, I'm always IMO only.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users