Solved

Where and how do I put sql queries in CodeIgniter

Posted on 2014-02-06
3
512 Views
Last Modified: 2014-02-06
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
0
Comment
Question by:johnecollins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 250 total points
ID: 39838618
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
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 250 total points
ID: 39838664
You can execute the sql query using $this->db->query().
More details, http://ellislab.com/codeigniter/user-guide/database/examples.html
0
 

Author Closing Comment

by:johnecollins
ID: 39838732
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

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question