CI - Nettuts+ Day 4 - Error, but code looks the same |
[eluser]ktufore[/eluser]
Hi, I've tried to look for other occurrences of this same issue. I'm following along on the great tuts by Jeffrey Way and I've come across an obstacle. This is the error that I receive: Code: ( ! ) Parse error: syntax error, unexpected T_IF in C:\wamp\www\ci\application\controllers\emailnewsletter.php on line 31 This is the code that I have: Code: <?php A couple differences are the name of the file and I actually was receiving an error when sending the emails through googlemail (but it works when using gmail in its place). The original error message referred to the commented out code (//$this->email->attach($file) but then I saw that Jeffrey Way commented that out but then the errors just move down the lines of code. Is there any errata or am I missing something simple? Thanks!
[eluser]troy_mccormick[/eluser]
Just a missing semi-colon: Code: <?php
[eluser]ktufore[/eluser]
Thank you very much. You think you check for all the simple things.... |
Welcome Guest, Not a member yet? Register Sign In |