| | |
upload and display images
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
![]() |
Similar Threads
- display random images from folder (PHP)
- Need Javascript Help for Display Images (JavaScript / DHTML / AJAX)
- Working with SQL server's Image data type (ASP.NET)
- how to display images in a form in access 2003 (MS Access and FileMaker Pro)
- "Cannot find server or DNS Error" and Trojan Virus (Viruses, Spyware and other Nasties)
- Dynamic Next/Prev Buttons in PHP/MySQL (MySQL)
- how to display an attached image file in email (ASP)
- Loading images (Java)
Other Threads in the PHP Forum
- Previous Thread: Open In New Window Php
- Next Thread: Drawback of php
| Thread Tools | Search this Thread |
apache api archive array basics beginner binary broken buttons cakephp checkbox class clients cms code codingproblem combobox cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html if...loop image include insert ip javascript joomla limit link list login mail memmory menu mlm multiple mysql number oop password paypal pdf php phpincludeissue problem query radio random recourse recursion recursive remote script search seo server sessions shot smarty sms source sp space speed sql static syntax system table tutorial up-to-date update upload url validator variable vbulletin video web webdesign youtube





