When the page first loaded, All forms are being updated if there are existing records in the database already
$testquery = "SELECT * FROM education WHERE member_Member_id = '$memberid_esc'";
$resultTestQuery = $db->readQuery($testquery);
if (isset($resultTestQuery)){
//echo '<pre>', print_r($resultTestQuery, true), '</pre>';
foreach ($resultTestQuery as $result){
$eduIdDb[] = $result['Education_id'];
$eduId[] = $result['Education_id'];
$Startyear[] = $result['Startyear'];
$Endyear[] = $result['Endyear'];
$School[] = $result['School'];
$Course[] = $result['Course'];
$Qualification[] = $result['Qualification'];
}
$dbRow = count($eduId);
}