<?php ob_start(); 
session_start();
?>
	<!DOCTYPE html>
	<html>
	<?php include "layouts/db_connect.php"; ?>
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv="X-UA-Compatible" content="chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<title>INFOSSEL SOFT SOLUTIONS </title>
		</head><body>
		<?php
// PDO connect *********
$ff = NULL; 
$sql55 = mysqli_query($conn, "SELECT * FROM customerdetails");
while($row55=mysqli_fetch_array($sql55)) {
    $id = $row55['id'];
 
       $intt = $row55['interest'];
 $hpa = $row55['hpamount'];
  $pcharge = $row55['pcharge'];
  $thp = $hpa - $pcharge;
	$update = mysqli_query($conn, "update customerdetails set totalhpamt='$thp',pinter='0' where id='$id'");

}
?> </body></html>