'; if ($new_username !== null) echo isset($successful['username']) ? 'Username update successful.' : 'Username update failed'; echo '
'; if ($new_password !== null) echo isset($successful['username']) ? 'Password update successful.' : 'Password update failed'; echo '
'; if ($new_username === null && $new_password === null) echo 'There was nothing to update.'; } function html_prologue($title) { ?> <?php echo $title; ?>

Operation failed

Reason:

Updation successful.

Students' details

record(s) found.

Change credentials

Roll No. Name E-mail City Date of birth
', array_map('htmlspecialchars', [ $row['ROLL'], $row['NAME'], $row['EMAIL'], $row['CITY'], $row['DATE_OF_BIRTH'] ])); ?>

Provide credentials

Change credentials

Fields for new value can be left empty to keep the value unchanged.