![]() |
error in my login script - 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 in my login script (/showthread.php?tid=13360) |
error in my login script - El Forum - 11-19-2008 [eluser]Nathan Payne[/eluser] Hi, I am new to this so please point out my obvious mistakes and tell me. Anyway, I am in the process of creating my first CI website and I have run into a problem creating my simple login script. Code is below. Controller: Code: <?php I get the following error: Parse error: syntax error, unexpected ';', expecting T_FUNCTION in \system\application\controllers\admin.php on line 30 error in my login script - El Forum - 11-19-2008 [eluser]Nathan Payne[/eluser] I need the solution fast, does anyone know? error in my login script - El Forum - 11-20-2008 [eluser]chriskelley[/eluser] Looks like you're missing the closing brace for your class. hth c error in my login script - El Forum - 11-20-2008 [eluser]Nathan Payne[/eluser] even when I put the } it still dosn't work it now tells me... Parse error: syntax error, unexpected '{', expecting '(' in system\application\models\admin_model.php on line 5 error in my login script - El Forum - 11-20-2008 [eluser]chriskelley[/eluser] Now you've got a syntax error in your model. It's telling you right there in the output what the problem is - dig into your models/admin_model.php file and follow the error. good luck c |