I have a piece of code which is driving me crazy please help!
Basically I have result set from a database returning 3 rows of data, the data in the field I'm interested in is as below:
row 1 - "the Retention Release Date;"
row 2 - "where applicable, any later due date for Retention release under clause 4·15·2·3; or"
row 3 - "the date of issue of the Contractor's statement under clause 4·6·2 or, in default, the last date for issue of that statement."
The array is $result_set
and the associative key is ['subsubclausedesc']
so the code I am running is:
while($result_set = $database->fetch_array($result))
{
echo htmlentities($result_set['subsubclausedesc']);
}
The problem I am having is that only the 1st row is being returned to the screen, if I echo without htmlentities I get all 3 rows, what am I doing wrong?