Where and how do I put sql queries in CodeIgniter

I have recently started learning CodeIgniter, I am making headway but I am not quite there for where and how would I implement sql queries.

Thank you if you for reading this question, if you can help I would love to hear from you.

If you need more information please ask and I will do my best to answer any questions.


Who is Participating?
Jagadishwor DulalBraces MediaCommented:
You work in model model for queries inside the application folder. See http://ellislab.com/codeigniter/user-guide/general/models.html better to read User Guide  first.
Loganathan NatarajanLAMP DeveloperCommented:
You can execute the sql query using $this->db->query().
More details, http://ellislab.com/codeigniter/user-guide/database/examples.html
johnecollinsAuthor Commented:
Thank you very much, for your responses, you have answered the question I asked, I just didn't ask precisely what I wanted but you have given me enough to sort out my problem thank you very much

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.