if (is_uploaded_file($_FILES[image][name])) is not working
<pre><code>if (is_uploaded_file($_FILES[image][name]))
{
    $row_PID = $_REQUEST['PID'];
    $sql = "SELECT * FROM tbl_image where PID='".$str_PID."'";
    $row    =   mysql_query($sql, $conn);

    while($getPID=mysql_fetch_array($row))
    {
        $PID = $getPID['PID'];
        $sqldelete ="delete from tbl_image where PID ='".$PID."'";
        tep_db_query($sqldelete,$conn);
    }

    while(list($key,$value) = each($_FILES[image][name]))
    {
        if(!empty($value)) 
        {   
            $filename = $value;  // filename stores the value
            $add = "../upload/portfolio/$filename";  // upload directory path is set
            copy($_FILES[image][tmp_name][$key], $add);
            chmod("$add",0777); 
        } 

        $query="insert into tbl_image (ImageID,PID,ImagePath,DateCreated,LastUpdate) values ('','$str_PID','$filename',now(),now())";
        tep_db_query($query, $conn);
    }
}
</code></pre>

<p>I not access <code>if (is_uploaded_file($_FILES[image][name]))</code> this condition</p>
