I have Three queries execute at the same time and its declared one object $sql.
In result "Product" Array Actually Four Record display only one Record,Three Record is not Display. In "total" Array Percentage Value Display null. 

I have need this Result

```
  {"success":1,"product":[{"std_Name":"VIVEK SANAPARA","Standard":"12-SCI-CE","Division":"A","ExamDate":{"date":"2016-10-06 00:00:00.000000","timezone_type":3,"timezone":"UTC"},"subject":"MATHS","ExamName":"WT","Marks":"30.00","TotalMarks":"30.00","PassingMarks":"10"},{"std_Name":"VIVEK SANAPARA","Standard":"12-SCI-CE","Division":"A","ExamDate":{"date":"2016-10-07 00:00:00.000000","timezone_type":3,"timezone":"Asia\/Kolkata"},"subject":"PHYSICS","ExamName":"WT","Marks":"15.00","TotalMarks":"30.00","PassingMarks":"10"},{"std_Name":"VIVEK SANAPARA","Standard":"12-SCI-CE","Division":"A","ExamDate":{"date":"2016-10-08 00:00:00.000000","timezone_type":3,"timezone":"Asia\/Kolkata"},"subject":"PHYSICS","ExamName":"WT","Marks":"25.00","TotalMarks":"30.00","PassingMarks":"10"},{"std_Name":"VIVEK SANAPARA","Standard":"12-SCI-CE","Division":"A","ExamDate":{"date":"2016-11-22 00:00:00.000000","timezone_type":3,"timezone":"Asia\/Kolkata"},"subject":"PHYSICS","ExamName":"WT","Marks":"25.00","TotalMarks":"30.00","PassingMarks":"10"},],"total":[{"Marks":"30.00","TotalMarks":"30.00","Percentage":"79.166600"}],"exam":[{"ExamName":"WT"}]}

```

I have show Error Image below the Code. In image only one record display but in above resulr Four Record and Percentage Value Display null in image.

Marks.php

```
if(isset($_REQUEST["insert"])) 
{ 
$reg = $_GET['reg'];

$sql = "select b.std_Name,d.Standard,e.Division,a.ExamDate,f.subject,a.ExamName,a.Marks,a.TotalMarks,a.PassingMarks 
                                  from Marks_mas a  inner join std_reg b on a.regno=b.regno 
                                  INNER JOIN Subject_mas as f ON a.Subject_ID = f.Subject_ID 
                                  inner join StandardMaster d on a.standard = d.STDID 
                                  inner join DivisionMaster e on a.Division = e.DivisionID 
                                  where a.RegNo= '$reg' order by a.ExamDate; select   sum(a.Marks) as Marks,sum(a.TotalMarks) as TotalMarks, sum(a.Marks)/sum(a.TotalMarks) * 100 as Percentage 
                                   from Marks_mas a 
                                   where a.RegNo= '$reg'; select distinct ExamName From Marks_mas;";

$stmt = sqlsrv_query($conn, $sql);

$result = array(); 

 if (!empty($stmt)) {
        // check for empty result
        if (sqlsrv_has_rows($stmt) > 0) {

            $stmt = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC);

            $product = array();
            $product["std_Name"] = $stmt["std_Name"];
            $product["Standard"] = $stmt["Standard"];
            $product["Division"] = $stmt["Division"];
            $product["ExamDate"] = $stmt["ExamDate"];
            $product["subject"] = $stmt["subject"];
            $product["ExamName"] = $stmt["ExamName"];
            $product["Marks"] = $stmt["Marks"];
            $product["TotalMarks"] = $stmt["TotalMarks"];
            $product["PassingMarks"] = $stmt["PassingMarks"];

            $total = array();
            $total["Marks"] = $stmt["Marks"];
            $total["TotalMarks"] = $stmt["TotalMarks"];
            $total["Percentage"] = $stmt["Percentage"];

            $exam = array();
            $exam["ExamName"] = $stmt["ExamName"];

            // success
            $result["success"] = 1;

            // user node
            $result["product"] = array();
            $result["total"] = array();
            $result["exam"] = array();

            array_push($result["product"],$product);
            array_push($result["total"],$total);
            array_push($result["exam"],$exam);

            // echoing JSON response
            echo json_encode($result);

        } else {
            // no product found
            $result["success"] = 0;
            $result["message"] = "No product found";

            // echo no users JSON
            echo json_encode($result);

        }

        //sqlsrv_free_stmt($stmt);
        sqlsrv_close($conn); //Close the connnection first  

    }

}

```

This is Error:

[enter image description here](https://i.stack.imgur.com/fHsXV.png)
['https://Stackoverflow.com/questions/47712861', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/8841544/']
You need do changes in two functions in your daterangepicker.js file:

1. createMonthHTML() 

```
    function createMonthHTML(d) { var days = [];
    d.setDate(1);
    var lastMonth = new Date(d.getTime() - 86400000);
    var now = new Date();
    var dayOfWeek = d.getDay();
    if ((dayOfWeek === 0) && (opt.startOfWeek === 'monday')) {
        // add one week
        dayOfWeek = 7;
    }
    var today, valid;

    if (dayOfWeek > 0) {
        for (var i = dayOfWeek; i > 0; i--) {
            var day = new Date(d.getTime() - 86400000 * i);
            valid = isValidTime(day.getTime());
            if (opt.startDate && compare_day(day, opt.startDate) < 0) valid = false;
            if (opt.endDate && compare_day(day, opt.endDate) > 0) valid = false;
            days.push({
                date: day,
                type: 'lastMonth',
                day: day.getDate(),
                time: day.getTime(),
                valid: valid
            });
        }
    }
    var toMonth = d.getMonth();
    for (var i = 0; i < 40; i++) {
        today = moment(d).add(i, 'days').toDate();
        valid = isValidTime(today.getTime());
        if (opt.startDate && compare_day(today, opt.startDate) < 0) valid = false;
        if (opt.endDate && compare_day(today, opt.endDate) > 0) valid = false;
        days.push({
            date: today,
            type: today.getMonth() == toMonth ? 'toMonth' : 'nextMonth',
            day: today.getDate(),
            time: today.getTime(),
            valid: valid
        });
    }
    var html = [];
    for (var week = 0; week < 6; week++) {
        if (days[week * 7].type == 'nextMonth') break;
        html.push('<tr>');

        for (var day = 0; day < 7; day++) {
            var _day = (opt.startOfWeek == 'monday') ? day + 1 : day;
            today = days[week * 7 + _day];
            var highlightToday = moment(today.time).format('L') == moment(now).format('L');
            today.extraClass = '';
            today.tooltip = '';
            if (today.valid && opt.beforeShowDay && typeof opt.beforeShowDay == 'function') {
                var _r = opt.beforeShowDay(moment(today.time).toDate());
                today.valid = _r[0];
                today.extraClass = _r[1] || '';
                today.tooltip = _r[2] || '';
                if (today.tooltip !== '') today.extraClass += ' has-tooltip ';
            }

            var todayDivAttr = {
                time: today.time,
                'data-tooltip': today.tooltip,
                'class': 'day ' + today.type + ' ' + today.extraClass + ' ' + (today.valid ? 'valid' : 'invalid') + ' ' + (highlightToday ? 'real-today' : '')
            };

            if (day === 0 && opt.showWeekNumbers) {
                html.push('<td><div class="week-number" data-start-time="' + today.time + '">' + opt.getWeekNumber(today.date) + '</div></td>');
            }
            if(day == 0){
                html.push('<td class="hideSunday"' + attributesCallbacks({}, opt.dayTdAttrs, today) + '><div ' + attributesCallbacks(todayDivAttr, opt.dayDivAttrs, today) + '>' + showDayHTML(today.time, today.day) + '</div></td>');
            }else{
                html.push('<td ' + attributesCallbacks({}, opt.dayTdAttrs, today) + '><div ' + attributesCallbacks(todayDivAttr, opt.dayDivAttrs, today) + '>' + showDayHTML(today.time, today.day) + '</div></td>');
            }

        }
        html.push('</tr>');
    }
    return html.join('');
}

```

In this function i have added class `hideSunday` while pushing the element.

The 2nd function is getWeekHead():

```
function getWeekHead() {
        var prepend = opt.showWeekNumbers ? '<th>' + translate('week-number') + '</th>' : '';
        if (opt.startOfWeek == 'monday') {
            return prepend + '<th>' + translate('week-1') + '</th>' +
                '<th>' + translate('week-2') + '</th>' +
                '<th>' + translate('week-3') + '</th>' +
                '<th>' + translate('week-4') + '</th>' +
                '<th>' + translate('week-5') + '</th>' +
                '<th>' + translate('week-6') + '</th>' +
                '<th class="hideSunday">' + translate('week-7') + '</th>';
        } else {
            return prepend + '<th class="hideSunday">' + translate('week-7') + '</th>' +
                '<th>' + translate('week-1') + '</th>' +
                '<th>' + translate('week-2') + '</th>' +
                '<th>' + translate('week-3') + '</th>' +
                '<th>' + translate('week-4') + '</th>' +
                '<th>' + translate('week-5') + '</th>' +
                '<th>' + translate('week-6') + '</th>';
        }
    }

```

In this file, I have added class to week-7 header.

CSS:

```
.hideSunday{display:none;}

```

Please note, I have not checked all the scenario but it will do trick for you.
You can also do it by setting a custom css class and use it in `beforeShowDay` like below 

```
.hideSunDay{
   display:none;
  }

   beforeShowDay: function(t) {
      var valid = t.getDay() !== 0; //disable sunday
      var _class = t.getDay() !== 0 ? '' : 'hideSunDay';   
      // var _tooltip = valid ? '' : 'weekends are disabled';
      return [valid, _class];
    }

```

But it only hides the sundays beginning from current day. 

Here is a working fiddle

<https://jsfiddle.net/dnbd01do/16/>