hi guys im trying to show and hide div according to mysql value but i couldnt do it can you help me what im doing wrong here is my code thanks a lot for your ideas
var Value = <?php echo json_encode($valuek) ?>;
if (Value==1){
$('#show_hide').show();
}
else{
$('#show_hide').hide();
}
<?php
$valuek = $session->userinfo['vcc'];
?>
<div id="show_hide">
some code
</div>
$valuekan array or a simple string? What is it's expected values?