Werid Database Issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Werid Database Issue (/showthread.php?tid=2018) |
Werid Database Issue - El Forum - 07-11-2007 [eluser]CodyPChristian[/eluser] So I'm having some werid issues with a function. All of the code is bellow. I can explain what the freakauth stuff does if needed . This is how the table is setup: id,nick,from,subject,date,message,new Here is my function: Code: function send_new() Here is my view: Code: <?=form_open('admin/messages/send_new');?> and here is my error: Code: An Error Was Encountered Werid Database Issue - El Forum - 07-11-2007 [eluser]BLymoth[/eluser] It seems like its treating the "from" field as the reserved word in SQL... try renaming your field to something else, like sender, source, originator.. whatever Werid Database Issue - El Forum - 07-11-2007 [eluser]CodyPChristian[/eluser] Thanks, I changed it and that fixed the problem |