This is my code that is returning a error: Notice: Array to string conversion in /Applications/XAMPP/xamppfiles/htdocs/cim/msgboard/login.php on line 29 (echo " - $msg
" ;)
Array
<?php include('includes/header_login.inc') ; if (isset($errors) && !empty($errors)) { echo '<p id="err_msg">A problem has occurred:<br>' ; foreach($errors as $msg) { echo " - $msg<br>" ; } echo 'please try again or <a href="registration-page.php">Register</a></p>' ; } ?>