I keep on receiving this error message when running the PHP code below ::
"Parse error: syntax error, unexpected 'echo' (T_ECHO) in C:\xampp\htdocs\informationdb\item.php on line 93"
I am trying to output dynamic PHP variables in a static html table using a foreach
loop. By any chance, can anyone spot where the error lies?
My code is as follows::
<table>
<form action='', method="POST">
<?php
foreach($libitem["libraries"] as $library) {
foreach($libitem["libraryitemids"] as $libraryitemid) {
foreach($libitem["sectionnames"] as $sectionName) {
foreach($libitem["sectionnumbers"] as $sectionNumber) {
echo "<tr><td id='radiocell'><input type='radio' name='libraryitemid' id='radio' value='" . $libraryitemid . "'></td><td>" . echo $library . "</td><td>" . echo $sectionName . "</td><td>" . echo $sectionNumber . "</td><td class='available'>Available</td></tr>";
}
}
}
}
?>
</table>