CodeIgniter Forums
Need help with marking read articles - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Need help with marking read articles (/thread-47683.html)



Need help with marking read articles - El Forum - 12-18-2011

[eluser]Unknown[/eluser]
Hi, I have an app that displays external links to a site, they are all articles. These articles are in the database. Im currently looking into a solution that would show the user new articles on their next visit.
I have a made a table with cols ID, user_id, article_id, read.
I have started work on the models and controller but basically I need to pass the article ID and user ID to a jquery function when a user clicks that article, so that the data can be inserted into the data showing that the article has been read.

Is this the best way to do this? I need some help on how to approach the jquery side of things.

Thank you.