franknu Posted January 16, 2007 Share Posted January 16, 2007 ok I want to upload multiple files i have a problems can anyone tell me how to set this up i need to be upload on the same row[code=php:0]$uploaddir = '/home/townsfin/public_html/business_images/';$uploadfile1 = $_FILES['Picture1']['name'];if(isset ($_FILES['Picture1'])){ If (is_uploaded_file($_FILES['Picture1']['tmp_name'])&& is_uploaded_file($_FILES['Picture2']['tmp_name'])); $fullpath = $uploaddir . $uploadfile1; $filename1=$_POST['name']. "1"; $result= move_uploaded_file($_FILES['Picture1']['tmp_name'], $fullpath. "$filename1"); if($result==1){ echo"picture one uploaded";}$uploadfile2= $_FILES['Picture2']['name'];$fullpath2=$uploaddir . $uploadfile2; $filename2= $_POST['name']. "2"; $result = move_uploaded_file($_FILES['Picture2']['tmp_name'], $fullpath. "$filename2"); if ($result==1) { echo"Picture2 uploaded";} If (move_uploaded_file($_FILES['Picture1']['tmp_name']) && ($_FILES['Picture2']['tmp_name']));{ $sql="INSERT INTO `business_info`(`BusinessName`,`Slogan`,`Business_Address`,`Tel`,`Website`,`Email`, `Fax`,`type`,`make`,`Categories`,`Keyword`,`Picture1`,`Headline`,`Slogan2`,`Description1`,`Description2`,`Description3`, `Picture2`,`Picture3`,`User_Name`,`Password`)Values('$BusinessName','$Slogan','$Business_Address','$Tel','$Website','$Email','$Fax','$type','$make','$Categories','$Keyword','$fullpath','$Headline','$Slogan2','$Description1','$Description2','$Description3','$fullpath','$fullpath','$User_Name','$Password')"; }}[/code] Link to comment https://forums.phpfreaks.com/topic/34467-warning-wrong-parameter-count-for-move_uploaded_file/ Share on other sites More sharing options...
Barand Posted January 16, 2007 Share Posted January 16, 2007 http://www.php.net/manual/en/features.file-upload.phpSee example 38-3 Link to comment https://forums.phpfreaks.com/topic/34467-warning-wrong-parameter-count-for-move_uploaded_file/#findComment-162389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.