<!-- language: lang-PHP -->
```lang-PHP
<div class="path">
<?php
$sqlmenucat="select * from `menu_tbl` where id='".$_GET['menu']."' ";
$premenucat = $conn->prepare($sqlmenucat);
$premenucat->execute();
while($resmenucat =$premenucat->fetch(PDO::FETCH_ASSOC)) {
$idmenucat = $resmenucat['id'];
$namemenucat = $resmenucat['name'];
}
?>
<?php
$sqlsubmenucat2="select * from `menu_tbl` where id='".$_GET['submenu']."' ";
$presubmenucat2 = $conn->prepare($sqlsubmenucat2);
$presubmenucat2->execute();
while($ressubmenucat2 =$presubmenucat2->fetch(PDO::FETCH_ASSOC)) {
$namesubmenucat2 = $ressubmenucat2['name'];
}
?>
<span>
<p style="margin-right: 10px;">فروشگاه اینترنتی دیجی کالا ></p>
<p><?php echo $namemenucat;?>></p>
<p><?php echo $namesubmenucat2;?></p>
</span>
</div>
```[Error pic][1]
[1]:https://imge.to/i/MGvYU
Notice: Undefined index: submenu on line 93