Image upload with PHP to MySQL database?

  • Thread starter Thread starter Cathy V
  • Start date Start date
C

Cathy V

Guest
I've created a database and a picture field on it called "Picture". I've also created the html form to upload images to the database.
1. How do I use these functions
(
$_FILES['picture']['name'];
$_FILES['picture']['tmp_name'];
$_FILES['file']['type'];
$_FILES['file']['size'];
)
to send the images to that picture destinantion field of the database.
2.Are ['name'] & ['tmp_name'] automatically generated by the server or I need to specify them myself?

Thank you for your invaluable help.
 
Back
Top