I have some variables in PHP that I pull out from a database. I want that a certain div in the page shows only when that variable pulls out a specific result.
I came across something like that but it doesn't work. Anybody can help me?
<?php  if ($piano = '7'){?>
  <script>
    $("#wellness").show();
  </script>
<?php } else { ?>
  <script>
    $("#wellness").hide();
  </script>
<?php } ?>
 
    