Monday, 30 November 2015
use move_uploaded_file more than once
fileupload
move_uploaded_file
php
Published on
07:37
By:
Taha
In:fileupload, move_uploaded_file, php
You can use copy to upload more than one file.
if(move_uploaded_file($file_loc_thumbnail,$folder_thumbnail.$Album_Thmbnail_Image)) //This is for 1st File
{
copy($file_loc_cover,$folder_cover.$Album_Cover_Image) ;This is for 2nd file
copy($file_loc_cover,$folder_cover.$Album_Cover_Image) ;This is for 3rd file
$sql="INSERT into pic (user_id )
VALUES (
'$id')";
mysql_query($sql);
}
else
{
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment