Uploading files to phpmyadmin
Hi I am having problems uploading a image file to a phpmyadmin database.
I have always uploaded text to database. Now I am trying to use the file browse option in dreamweaver.
At set up I am using:
$image=$_FILE['image']['name'];
$temp=$_FILE['image']['temp'];
move_uploaded_file($temp,'/images',$image);
//I also included the image variable in a inset function.
$upload=mysql_query(INSERT INTO images Values (' ','$image '));
I keep getting the default echo. Which says please fill in al fields. I believe I am not correctly uploading the image file. Could some one help me refine my code.
Thanks.