![]() |
error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: error (/showthread.php?tid=57156) |
error - El Forum - 02-21-2013 [eluser]davy_yg[/eluser] Hello, I have this codes: Code: <html> I get this error: Parse error: syntax error, unexpected T_ENDIF in C:\xampp\htdocs\Codeigniter_213\application\views\options_view.php on line 34 Why is it? error - El Forum - 02-21-2013 [eluser]boltsabre[/eluser] You've got a shorthand foreach loop in there that you forgot to close and you've got your "no records" inside your if statement, you want something like this ;-) Code: <?php if(isset($records)) : foreach($records as $row) : ?> |