| | |
how to store image in a folder and mysql
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
So you want to have a user upload an image that will be stored in a folder and then recorded in a database? Then you want code to be able to retrieve that image? Is that correct?
If that is the case then you need a bog standard upload script, accept from in the success block of code you will need to run some queries that will store the name of the file in the database along with any other information about the file you may need.
As for retrieving the file you just need to use a get to pass the ID of the file and then run a query using the GET variable and the n display all information about the file and passably a download link.
As for retrieving the file you just need to use a get to pass the ID of the file and then run a query using the GET variable and the n display all information about the file and passably a download link.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.
My Liveperson: http://liveperson.com/josh-connerty/
My Liveperson: http://liveperson.com/josh-connerty/
This problem has been extensively discussed in the following thread:
http://www.daniweb.com/forums/thread214601.html
~Graphix
http://www.daniweb.com/forums/thread214601.html
~Graphix
![]() |
Similar Threads
- Saving mage in a path instead of storing the real image in mysql (PHP)
- Store pics in database (PHP)
- Trying to display an image rom mysql: whats wrong (PHP)
- Image upload from, Form into Folder and MySQL (PHP)
- Problem on PHP/Mysql Server (PHP)
- how to point the path to IMAGE folder for MYSQL PHP database (MySQL)
- image folder /path (Linux Servers and Apache)
- I need an exampls program in java to store image datatype in ms-sql (MS SQL)
Other Threads in the PHP Forum
- Previous Thread: Date pre-1970, strtotime and safestrtotime nor mktime is of any help
- Next Thread: help with flash and php
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array autosuggest beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email emptydisplayvalue eregi error execute explodefunction file files folder form forms function functions google hack href htaccess html image include insert integration ip java javascript joomla keywords library limit link login loop mail menu mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search searchbox server sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video web website xml youtube





