User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,817 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3043 | Replies: 1
Reply
Join Date: Dec 2006
Location: Damascus - Syria
Posts: 11
Reputation: rori is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
rori's Avatar
rori rori is offline Offline
Newbie Poster

Question upload and display images

  #1  
Nov 15th, 2007
hi all
i am working on a website that will display projects and many images for each project.
i want to make an interface for the website admin to login and add new projects and images for each project.
i was wondering whats the best way to store the images in the mysql database and assign them to a project an then display the project with a slideshow next to it that shows all images for this specific project.
i decided to make 2 tables, one for projects (projID projName and projDesc) and the other for images (imgID imgName projID)
in the imgName field i will store the image name, and in the php code i will display the path which is always the same and get the image name from the database.
is everything i said make sense so far?
i know how to upload an image and attach it and send it as an email
but i dont know how to upload the image to the directory, and store the name of the image in the database in imgName field to retrieve it later with php
if you know any tutorial or article or sample code please help...
thanks a lot
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: Budapest
Posts: 252
Reputation: fatihpiristine has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 14
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: upload and display images

  #2  
Nov 15th, 2007
i sent the upload code here... check ma posts
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC