Bootstrap in php

hello,
my code doesn’t work
i’d like to put some bootstrap in php.

if(isset($_SESSION['Nom'])){
                   
              <li class="nav-item">
                                <a href="déco.php" class="nav-link">déconexion</a>
                   
                }
                else{echo(" ");}

thanks

What should that mean? What is the question? What have you tried yourself? Bootstrap has nothing to do with PHP.

i found a solution on stackoverflow the answer was :

>  if(isset($_SESSION['Nom'])):?>
                  <li class="nav-item">
                                    <a href="déco.php" class="nav-link">déconnexion</a>
                       
                   <?php else :?>
                        
                      
                    
									<li class="nav-item">
                                    <a href="enregistrement.php" class="nav-link">Enregistrement/login</a>
                                <?php endif; ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service