• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 532
  • Last Modified:

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.


2 Solutions
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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now