Note that there are some explanatory texts on larger screens.

plurals
  1. POI am uploading 5 files at a time, how can I update a particular file?
    text
    copied!<p>i am uploading 5 files at a time.its uploaded successfully but when i want to update some particular files like file 1 and file 2 other files should not be changed it must be as its is..but in my case it goes blank..here is my code </p> <pre><code>if(isset($_REQUEST['update'])) { $img1 = $_FILES['file_img1']['name']; $fileElementName = 'file_img1'; $path = 'upload/'; $location = $path . $_FILES['file_img1']['name']; move_uploaded_file($_FILES['file_img1']['tmp_name'], $location); $img2 = $_FILES['file_img2']['name']; $fileElementName = 'file_img2'; $path = 'upload/'; $location = $path . $_FILES['file_img2']['name']; move_uploaded_file($_FILES['file_img2']['tmp_name'], $location); $img3 = $_FILES['file_img3']['name']; $fileElementName = 'file_img3'; $path = 'upload/'; $location = $path . $_FILES['file_img3']['name']; move_uploaded_file($_FILES['file_img3']['tmp_name'], $location); $img4 = $_FILES['file_img4']['name']; $fileElementName = 'file_img4'; $path = 'upload/'; $location = $path . $_FILES['file_img4']['name']; move_uploaded_file($_FILES['file_img4']['tmp_name'], $location); $img5 = $_FILES['file_img5']['name']; $fileElementName = 'file_img5'; $path = 'upload/'; $location = $path . $_FILES['file_img5']['name']; move_uploaded_file($_FILES['file_img5']['tmp_name'], $location); $sel="update tbl_job_schedule set file1='$img1', file2='$img2', file3='$img3', file4='$img4', file5='$img5', status='schwork', user_cmntdate=now(), cmnt='".$_REQUEST['addcmnt']."' where clientname='".$rw['clientname']."' and username='".$_SESSION['user']."' and jobdate='".$_SESSION['strmonth']."-".$_REQUEST['dt']."-".$_SESSION['yy']."'"; mysql_query($sel) or die($sel); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload