The following code throws an error (Highlighted below)
Notice: Undefined offset: 0 in C:\Program Files (x86)\Zend\Apache2\htdocs\module\news.php on line 95 Notice: Undefined offset: 0 in C:\Program Files (x86)\Zend\Apache2\htdocs\module\news.php on line 96 Notice: Undefined offset: 0 in C:\Program Files (x86)\Zend\Apache2\htdocs\module\news.php on line 99 Notice: Undefined offset: 0 in C:\Program Files (x86)\Zend\Apache2\htdocs\module\news.php on line 100
Can someone point me in the right direction, please.
{
$i = 0
$commentData[$a] = array($row['id'],$row['text'],$row['author'],$row['time']);
$a++;
}
$_GET['page'] = (int)$_GET['page'];
if(!isset($_GET['page'])) $_GET['page'] = 1;
for($i = (($_GET['page'] - 1) * 10); $i < (($_GET['page']) * 10);$i++)
{
LINE 95 >> $nCommentID = $commentData[$i][0];
LINE 96 >> $szText = $commentData[$i][1];
$szText = misc::applyAttributesToText($szText);
$szText = security::fromHTML($szText);
LINE 99 >> $szAuthor = $commentData[$i][2];
LINE 100 >> $szTime = $commentData[$i][3];
Thank you.
Tony