require ('dbcon.php'); $sql1="Select * From Ref_Weekno_Master where Internal='".$_POST["scnofrom"]."'"; // echo $sql1; // echo "Select * From Ref_Weekno_Master where Internal='".$_POST["chkdate1"]."'"; $result1=mysqli_query($conn,$sql1); $record1=mysqli_fetch_array($result1); $weekno1=$record1["Week_No"]; $weekyear=$record1["yearno"]; // echo $weekno1; $sql3="Select * From Ref_Weekno_Master where Week_No='".$weekno1."' AND yearno='$weekyear'"; // echo "Select * From Ref_Weekno_Master where Internal='".$_POST["chkdate1"]."'"; $result3=mysqli_query($conn,$sql3); $record3=mysqli_fetch_array($result3); $weeknostart=$record3["From_Date"]; //echo $weeknostart; $weekstartfor=date('d-M', strtotime($weeknostart)); $weeknoend=$record3["To_Date"]; $newdate = strtotime ( '-1 day' , strtotime ( $weeknoend ) ) ; $newdate = date ( 'Y-m-j' , $newdate ); $weekendfor=date('d-M', strtotime($newdate)); ?>
Frame Dlvy ADD/EDIT