When all the database has been successfully insert, update or deleted. The page will read database again and update all forms with the latest data
if($database_mod){ unset($eduId); unset($Startyear); unset($Endyear); unset($School); unset($Course); unset($Qualification); $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){ $eduId[] = $result['Education_id']; $Startyear[] = $result['Startyear']; $Endyear[] = $result['Endyear']; $School[] = $result['School']; $Course[] = $result['Course']; $Qualification[] = $result['Qualification']; } $dbRow = count($eduId); //echo $dbRow; } }