Page 1 of 1
File upload working but how do I save path to a DB
Posted: Mon Jan 14, 2008 5:05 am
by lostprophetsie
Hi I have just added a picture upload feature to a page I am developing I now need the location and name of the image to be saved to a database along with some other information from a form. How can I do this?
Re: File upload working but how do I save path to a DB
Posted: Mon Jan 14, 2008 5:40 am
by jimthunderbird
The logic I think will be:
if the file is successfully uploaded, store the target file path and other values in $_POST into db, might want to check out:
http://us.php.net/features.file-upload
Re: File upload working but how do I save path to a DB
Posted: Mon Jan 14, 2008 5:48 am
by lostprophetsie
Nice I'll have a look at this, thank you.