I cannot figure out whats wrong with this segment of code:
}else{
$error_message = '<span class="error">';
foreach($error as $key => $values){
$error_message.= "$values<br />";
}
$error_message.="</span><br /><br />";
}
I get the error:
Warning: Invalid argument supplied for foreach() in FILE DIRECTORY on line 45
Line 45 is the foreach($error...
line
Solved: My issue was I messed up the placement of curly brackets which in turn messed up the array