I can't seem to get this to work, trying to upload multiple pictures.
<?php
$file_dir = "/www/htdocs/coldwell/images/propertymanagement/buildings";
$file_url = "http://www.mysite.com/coldwell/images/propertymanagement/buildings";
// print "path: $listings_floorplan<br>\n";
// print "name: $listings_floorplan_name<br>\n";
// print "size: $listings_floorplan_size bytes<br>\n";
// print "type: $listings_floorplan_type<p>\n\n";
mysql_connect("");
mysql_select_db("");
$sql = "INSERT INTO listings VALUES ('','$listings_aptnumber', '$listings_rent', '$listings_numberofbedrooms', '$listings_level', '$listings_dateavailable', '$listings_utilitiespaid', '$listings_balcony', '$listings_parking', '$listings_exposure', '$listings_fireplace', '$listings_washerdryer', '$listings_pets', '$listings_dishwasher', '$listings_comments', '$listings_active', '$listings_squarefeet', '$listings_floorplan', '$property_name', '$listings_plugins', '$listings_securitydeposit', '$listings_image1', '$listings_image2', '$listings_image3', '$listings_image4')";
$result = mysql_query($sql);
copy ( "$listings_floorplan", "../images/propertymanagement/buildings/$listings_floorplan_name" ) or die ("Couldn't copy");
copy ( "$listings_image1", "../images/propertymanagement/buildings/$listings_image1_name" ) or die ("Couldn't copy");
copy ( "$listings_image2", "../images/propertymanagement/buildings/$listings_image2_name" ) or die ("Couldn't copy");
copy ( "$listings_image3", "../images/propertymanagement/buildings/$listings_image3_name" ) or die ("Couldn't copy");
copy ( "$listings_image4", "../images/propertymanagement/buildings/$listings_image4_name" ) or die ("Couldn't copy");
print "<meta http-equiv=\"refresh\" content=\"1; URL=viewlistings.php\">";
?>
Thanks in advance.