Jump to content


uploaded images on page


3 replies to this topic

#1 darkson01

    Young Padawan

  • Members
  • Pip
  • 114 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Gfx, skateboarding, playing guitar, listening to punk music and flash!

Posted 05 September 2007 - 11:45 AM

hi!
i am wondering if anyone can point me to someplace where i can learn how to do this:
i am uploading pictures on my sever and their details onto my database, once they are there, i want them placed on a html page but in certain locations on the page, and there will be more than one image.
i want to know how to write script so it picks out the image details from the database and places the image location and stuff in "<img scr="", height="", width="">" and that sort of thing. the page will show the latest pictures that have been uploaded onto the server.
can anyone help me?
thanks

#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 05 September 2007 - 09:18 PM

Erm, simple upload script in conjunction with your every-day database integration tutorial.

When you successfully upload a file, grab the details you need (getimagesize() will probably give you a majority of what you are trying to get), and stick 'em in the database. Then from there, just simply pull out the latest entries, sorted by either ID or a timestamp if you want to store that in there too.

#3 darkson01

    Young Padawan

  • Members
  • Pip
  • 114 posts
  • Gender:Male
  • Location:Scotland
  • Interests:Gfx, skateboarding, playing guitar, listening to punk music and flash!

Posted 06 September 2007 - 10:17 AM

it's the pulling out the database part im a little stuck on actually, how would i go about finding out how to do that part of it?

#4 Braunson

    Young Padawan

  • Members
  • Pip
  • 237 posts
  • Gender:Male
  • Location:Ontario, Canada

Posted 06 September 2007 - 04:40 PM

Connecting to a mysql database using php: http://www.google.ca/search?hl=en&q=ho...earch&meta=

Display mysql results from a database: http://www.google.ca/search?hl=en&safe...earch&meta=

Simple google search.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users