Syntax error when I try to insert my loop into an unordered list? [closed]
You’re not adding HTML code to your file, you’re adding invalid PHP. To recap, in PHP everything between <?php and ?> is PHP code. So this is valid PHP: <?php echo ‘hello world’;! ?> This is also valid: <b><?php echo ‘hello world’; ?></b> This is not valid: <?php <b> echo ‘hello world’; </b> ?> Why? … Read more