Show Hide div if, if statement is true

后端 未结 7 469
情歌与酒
情歌与酒 2020-12-08 15:46

My code works to a point. What I want is that when this if statement is false, the

doesn\'t show



        
7条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 16:44

    This does not need jquery, you could set a variable inside the if and use it in html or pass it thru your template system if any

     0){
        $fvisit = mysql_fetch_array($result3);
        $showDivFlag=true;
     }else {
    
     }
    
    ?>
    

    later in html

      
    style="display:none">

提交回复
热议问题