SHARE
TWEET

Untitled

a guest Aug 13th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foreach( $_POST['edit'] AS $edit ) {
  2. $fromdate=mysql_real_escape_string($_POST['fromdate'][$edit]);
  3. $todate=mysql_real_escape_string($_POST['todate'][$edit]);
  4. $total=mysql_real_escape_string($_POST['total'][$edit]);
  5. $ampm=mysql_real_escape_string($_POST['ampm'][$edit]);
  6. $Update_leavedetails .= "UPDATE leaverequestdetails SET fromdate='$fromdate', ".
  7. "todate='$todate',total='$total',ampm='$ampm' ".
  8. "WHERE tranid = '$edit';";
  9. }
  10. if(!mysql_query($Update_leavedetails)){
  11. die('Invaild query: ' . mysql_error());
  12. }
  13. else {
  14. .....
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top