![]() |
Codeigniter, mysql, ajax enroll - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Codeigniter, mysql, ajax enroll (/showthread.php?tid=42007) |
Codeigniter, mysql, ajax enroll - El Forum - 05-23-2011 [eluser]jacobson[/eluser] Hello, i want to build enrollment script on my site. In foreach loop i have links generated with its own id. When user hits one link (it has onclick function which loads ajax function) he starts the ajax function witch add data (the userd id from session, and the "link" id ) to the database. (it will enable to recognise whether the users has enrolled into event or not). I already know that I have to create in the view file the ajax script but I know also that it has to process the data to the database through the model, so I have to operate on model from my view. I dunno if my thinking is right, anyone mabe know the best solution and could provide some informations ![]() |