I need to use a php variable in an if.. else clause outside of the block of php code and can't get it working. The existing code block is below. All help is appreciated.
$chk is the variable from the php block and is numeric.
<?php if($chk == 0) {
<div id='showMe'>
<div class="container">
<div class="row" style="color:red; padding-top:6rem; text-align:center;">
<h1>Database Update Failed</h1>
</div>
</div>
</div> }
else {
<div id='showMe'>
<div class="container">
<div class="row" style="padding-top:6rem; text-align:center;" >
<h1><center>Database Update Successful</center></h1>
</div>
</div>
endif
</div>
</div>
</body>
</html>
Thanks much.