i am working on codigniter . i am developing basic cms.my view code of generating dynamic pages at front end is
<ul id="jsddm">
<?php for ($i=1; $i<=$url['10']['10']['10']; $i++)
{ ?>
<li><a href="<?php echo site_url($url[$i]['0']['slug']); ?>"> <?php echo $url[$i]['0']['page_name']; ?> </a>
<?php if($url['11'][$i]['11']>0){ ?>
<ul>
<?php for ($j=1; $j<$url['11'][$i]['11']; $j++) { ?>
<li><a href="<?php echo site_url($url[$i]['0']['slug'].'/'.$url[$i][$j]['slug']) ?>"><?php echo $url[$i][$j]['page_name']; ?></a></li>
<?php } ?>
</ul>
<?php } ?>
</li>
<?php }?>
</ul>
It is giving the error
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 9
Filename: includes/website_header.php
Line Number: 85
AND
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 9
Filename: includes/website_header.php
Line Number: 86
the 86th line is if statement.