Ok so i'm trying to make a checklist for a school website and I want to make an ordered list followed by the check box and the description. Here is my code for it but I get an error message saying "Unexpected IF statement."
echo "<ol type='1'>
<li>" . if ($r['check1'] == 1){
echo "<input type='checkbox' name='check1' value='1' checked>submitted my JSCC
admissions application for the upcoming term to JSCC Admissions and Records
Services.
\n<br>";
} else {
echo "<input type='checkbox' name='check1' value='1'>submitted my JSCC admissions
application for the upcoming term to JSCC Admissions and Records
Services.
\n<br>";} . "</li>
</ol>\n";