So what I am trying to do is make an if statement (for now the numbers wont change) but when I run the code it says "Parse error: syntax error, unexpected 'echo' (T_ECHO) in {root} on line 8" How can i fix this?
<?php
$get_id='1';
$imageid = '1';
$imagepath = 'http://localhost/images/p.png';
if($get_id == $imageid){
echo '<div class="box2"><img src='.$imagepath.'></div>';
} else {
echo "<div class='box2'>No profile picutre set</div>";
}
?>