I\'m executing a PHP if/else statement.
However, I want the code to do something like this :
Reckon you could do something like this:
<?php
if ($condition == true):
echo 'ITS TRUE!';
else:
?>
//put whatever html/style/script you want here, for example
<script>
$( '#id-element' ).css('display', 'none');
</script>
<?php endif; ?>
You can echo the HTML for a style element and throw the CSS inside that.
else {
echo '<style type="text/css">
#id-element {
display: none;
}
</style>';
}