| | |
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 |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external fcc file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing pagerank paypal pdf php phpmysql play problem query question radio random recursion remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube





