Error Message - VirajKanse/Student_Authentication GitHub Wiki

If no errors were encountered, the user is registered in the users table in the database with a hashed password. The hashed password is for security reasons. It ensures that even if a hacker manages to gain access to your database, they would not be able to read your password.

But error messages are not displaying now because our "errors.php" file is still empty. To display the errors, paste this code in the "errors.php" file.


<?php  if (count($errors) > 0) : ?>
  <div class="error">
  	<?php foreach ($errors as $error) : ?>
  	  <p><?php echo $error ?></p>
  	<?php endforeach ?>
  </div>
<?php  endif ?>

⚠️ **GitHub.com Fallback** ⚠️