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
Solved

Where and how do I put sql queries in CodeIgniter

Posted on 2014-02-06
3
507 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

791 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