mardi 12 janvier 2021

How to use php if statement inside another php

I want to use if statement inside php if users click that div so users can redirect to another page. ;s there any way to make that happend.

php code

<?php
while ($row = mysqli_fetch_assoc($result)){
there some other codes here
}
echo'
if (!isset($_SESSION['id'])) {
echo'
<a href="https://www.example.com">
<div><img src=""></div>';

'; } ?>

Aucun commentaire:

Enregistrer un commentaire