PHP parse error (beginner)?
I keep getting this error: "Parse error: syntax error, unexpected ‘}’ …etc"
It is giving this error wherever I have an IF statement that skips out of php to display HTML then goes back into php to close the IF statement. The closing bracket is causing the problem.
Example:
if (mysqli_num_rows($result) == 0) {
?>
<p>Image not found.</p>
<?php
} else [...]