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.

Thanks

John
johnecollinsAsked:
Who is Participating?
 
Jagadishwor DulalConnect With a Mentor Braces 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.
0
 
Loganathan NatarajanConnect With a Mentor LAMP DeveloperCommented:
You can execute the sql query using $this->db->query().
More details, http://ellislab.com/codeigniter/user-guide/database/examples.html
0
 
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

John
0
All Courses

From novice to tech pro — start learning today.