The better way to do that would be:
<?php
$left_title = stripslashes($_POST['left_title']);
$left_text = stripslashes($_POST['left_text']);
$images[1] = $_FILES['image1']['tmp_name'];
$image1main = $_FILES['image1']['name']; //image 1
$src = imagecreatefromjpeg($images[1]);
$images[2] = $_FILES['image2']['tmp_name'];
$image2main = $_FILES['image2']['name']; // image 2
$src2 = imagecreatefromjpeg($images[2]);
$images[3] = $_FILES['image3']['tmp_name'];
$image3main = $_FILES['image3']['name']; // image 3
$src3 = imagecreatefromjpeg($images[3]);
for ($n = 1; $n <= $number_of_images_uploaded; $n++)
{
list($width,$height)=getimagesize($images[$n]);
$newwidth=600;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
$filename = "/home/users/web/b2075/moo.petenaylor/websites/d/dogs/images/front/". $_FILES['image'.$n]['name'];
imagejpeg($tmp,$filename,100);
imagedestroy($src);
imagedestroy($tmp);
}
// Validation
//saving record to MySQL database
//(\"$item_category\",\"$title\",\"$description\",\"$price\",\"$postage\",\"$condition\",\"$item_code\",\"$image1main\",\"$image2main\",\"$image3main\",\"$image4main\")" ;
@$pfw_strQuery = "INSERT INTO `front_page_text`(`left_title`,`left_text`,`image1`,`image2`,`image3`)VALUES (\"$left_title\",\"$left_text\",\"$image1main\",\"$image2main\",\"$image3main\")" ;
?>
That should work. assuming $number_of_images_uploaded contains (surprise surprise!) the number of images that were uploaded.
Also I replaced $image1, $image2 and $image3 with one array $images.