this is my prob
". i want to change this code to uypload 5 images
pls help me
<?php
//This is the directory where images will be saved
$target = "images/";
$target = $target . basename( $_FILES['photo']['name']);
//This gets all the other information from the form
$name=$_POST['xx'];
$address=$_POST['xx'];
$phone=$_POST['xx'];
$email=$_POST['xxl'];
$mobile=$_POST['xx'];
$type=$_POST['xx'];
$bedrooms=$_POST['xx'];
$bathrooms=$_POST['xx'];
$furnish=$_POST['fxx'];
$pic=($_FILES['photo']['xx']);
// Connects to your Database
mysql_connect("xxxx", "xxxxx", "xxxxxx") or die(mysql_error()) ;
mysql_select_db("navaja") or die(mysql_error()) ;
//Writes the information to the database
mysql_query("INSERT INTO `xxxx` VALUES ('$name', '$address', '$phone', '$email', '$mobile', '$type', '$bedrooms', '$bathrooms', '$furnish', '$pic')") ;
//Writes the photo to the server
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{
//Tells you if its all ok
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";
}
else {
//Gives and error if its not
echo "Sorry, there was a problem uploading your file.";
}
?>
</body>
</html>"