Ohh man I'm so close ... 😃
But I'm getting an error around this line:
$SecondRow = str_replace((array_slice($rs,6,7)),$Word,$WordDisplay);
If time allows it, Can anyone assist me with this error please?
Specific Error Message:
Warning: array_slice() [function.array-slice]: The first argument should be an array
// Display all the values in the records set
if ($rs->EOF) {
echo "Sorry, no lemma available for: <strong>$rdo</strong><br />\n".
"Please <a href='javascript:history.go(-1)'>try again</a>.<br /><br />\n";
} else { echo "<font size=\"4\"><strong>".$rs[2]."</strong></font></div>";
while (!$rs->EOF) {
$intPos = $rs[7];
//echo $intPos;
if ($intPos = 1) {
$FirstRow = " ";
} else { $rsA = $conn->Execute("SELECT AhText.AhTextNumVerse FROM AhText WHERE AhText.AhTextPos='".intval($intPos-1)."'");
$FirstRow = array_slice($rsA,0,7);
$rsA->Close();
}//end else
if ($intPos = 1564) {
$ThridRow = " ";
} else { $rsC = $conn->Execute("SELECT AhText.AhTextNumVerse FROM AhText WHERE AhText.AhTextPos='".intval($intPos+1)."'");
$ThridRow = array_slice($rsC,0,7);
$rsC->Close();
}//end else
// MARK WORDFORM IN VERSE -->
$Word = str_replace($rs[1],"-","");
$WordDisplay = "<font color=\"red\">".$Word."</font>";
//$SecondRow = str_replace((array_slice($rs,6,7)),$Word,$WordDisplay);
$Grammar = "<strong>".$rs[3]."</strong>";
// DISPLAY DATA -->
$Data = $rs[0]." ".$FirstRow." / ".$SecondRow." / ".$ThirdRow." [".$Grammar.", ".$rs[4].", ".$rs[5]."]";
echo $Data."<br />";
$rs->MoveNext;
}//end while
}//end else
Thanx!
Endurox