</tr>
     <tr>
          <td ><strong>Bill Cycle</strong>: <?php 
echo $row_fetch['bill_cycle'];
?>
</td>
    </tr>
    <tr>
          <td ><strong>Base Date & time</strong>: <?php 
echo date('d.m.y h:m A', strtotime($row_fetch['upload_date_time']));
?>
</td>
    </tr>
       <tr>
          <td ><strong>Batch uploaded</strong>:<?php 
echo get_time_taken($row_fetch['upload_date_time']) . " Hrs ago..";
?>
</td>
    </tr>
	</table>
  </form>
</div>
<input type="hidden" name="selected_ivr" id="selected_ivr" value="<?php 
echo $ivr;
?>
" />
<input type="hidden" name="dv" id="dv" value="<?php 
echo $row_fetch['dv'];
?>
" />
<input type="hidden" name="old_ivr_f" id="old_ivr_f" value="<?php 
<?php

include 'config.php';
extract($_GET);
$sql = "select * from base where 1 and `ivr_flag` IN(0,5,7,8,9) and `fes_id` = '{$user_id}' order by `batch_code`";
$query = mysql_query($sql);
$total = mysql_num_rows($query);
$result .= '{ "info" : [';
$i = 0;
while ($row = mysql_fetch_array($query)) {
    $time_taken = get_time_taken($row['upload_date_time']);
    $result .= '{ 
"id" : "' . $row['id'] . '",
"name" : "' . $row['full_name'] . '",
"upload_date_time" : "' . date('d.m.y h:m A', strtotime($row['upload_date_time'])) . '",
"code" : "' . $row['code'] . '",
"mail_zip" :  "' . $row['mail_zip'] . '",
"external_id" : "' . $row['external_id'] . '",
"bill_plan" : "' . $row['bill_plan'] . '",
"batch_code" : "' . $row['batch_code'] . '",
"time_taken" : "' . $time_taken . '"
},';
}
$res = substr($result, 0, strlen($result) - 1) . '
]}';
echo $res;