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
uploaded images on page
Started by darkson01, Sep 05 2007 11:45 AM
3 replies to this topic
#1
Posted 05 September 2007 - 11:45 AM
#2
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.
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
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
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.
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
