This is working:
$i=0;
while ($i<5) {
$i++;
if ($i == 2 || $i == 4) {
echo "</tr><tr><td width=\"25%\">Topic $i:</td><td width=\"25%\">$topic[$i]"; }
else {echo "<td width=\"25%\">Topic $i:</td><td width=\"25%\">$topic[$i]"; }
}
But this produces a parse error in the 'if' line:
$i=0;
while ($i<14) {
$i++;
if ($i == 3 || $i == 5 || $i == 7 || $i == 9 || $i == 11@|| $i == 13) {
echo "</tr><tr><td width=\"25%\">Meaning $i: </td><td width=\"25%\">$meaning[$i]</td>"; }
else {echo "<td width=\"25%\">Meaning $i: </td><td width=\"25%\">$meaning[$i]</td>"; }
}
I can't see why the first one works but the second one doesn't...
My first post here - grateful for any help !