I am trying to add a div onto the output of each loop. Without the div the code runs.
foreach($arr as $data){
echo "<div class=\"rcorners\"> $data['bookID'], $data['saleId']</div>";
}
gives
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)