how to upload image by below code : I am trying to upload image by the below code. I am getting the file name from input file field.
if(isset($_REQUEST['requestsubmit'])){
	
	$field_values_array1 = $_REQUEST['name'];
	$field_values_array2 = $_REQUEST['address'];
	$field_values_array3 = $_REQUEST['image'];
	print_r($field_values_array1);

	/*foreach($field_values_array as $k=>$value){}*/
	
	foreach($field_values_array1 as $k=>$value1){}
	foreach($field_values_array2 as $k=>$value2){}
	
	foreach($field_values_array3 as $k=>$value3){

		//your database query goes here
	
	$insert ="INSERT INTO `infotown_house`.`test` (`id`, `userName`, `cat`, `det`) VALUES (NULL, '".$field_values_array1[$k]."', '".$field_values_array2[$k]."', '".$field_values_array3[$k]."')";
	
	mysql_query($insert);