I've been struggling to find the error in my code. Any help would be appreciated.
<?php
if(isset($_SESSION["pkg_error"]));
?>
<div class="error_msg_cont">
<?php
foreach($_SESSION["pkg_error"] as $error)
{
echo $error. "<br>"
}
?>
</div>
<?php
if(isset($_SESSION["msg"]))
{
echo '<div class="error_msg_cont">'. $_SESSION["msg"] .'<div>'
}
?>
Edit, I updated the code but am still getting an error. Did I update this wrong? Been trying to fix this for over 3 hours. This is the error I'm getting: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
<?php
if(isset($_SESSION["pkg_error"]))
?>
<div class="error_msg_cont">
<?php
foreach($_SESSION["pkg_error"] as $error)
{
echo $error. "<br>";
}
?>
</div>
<?php
if(isset($_SESSION["msg"]))
{
echo "('<div class="error_msg_cont">'. $_SESSION["msg"] .'<div>')";
}
?>
"`