Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:36:12+00:00 2026-06-06T23:36:12+00:00

I dont have any previous experience with PDO, so my question may sound too

  • 0

I dont have any previous experience with PDO, so my question may sound too simple.
I heard few times that PDO is better than mysql/mysqli in terms of security ,and since Codeigniter is supporting PDO driver, I decided to make the change in my new project.

but as I’m aware of Codeingiter doesn’t use prepared statements, and (I think) it missed the point of using PDO, is that correct, and is it insecure?
So my question: is using PDO driver with codeigniter considered insecure?
And, does that mean I must take care of the basic security by myself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:36:13+00:00Added an answer on June 6, 2026 at 11:36 pm

    All query calls are escaped in the simplified $this->db functions, such as delete() and get_where(). This adds some automated security.

    If written too slobby, you may grant access to users to edit other users content for instance. So there’s no magical solution to full security. The more detailed you are, the more correct your code will work for you.

    If you need custom queries, you can do like this:

    $int_user_id = 1;
    
    $this->db->query("
    SELECT *
    FROM users
    WHERE id = ?
    ", array($int_user_id));
    

    Note: To implement IN () and LIKE, you need to escape accordingly, and not insert through array() and ?.

    query()
    escape()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Folks I am surprised to see my code working, that I dont have any
I don't have any prior experience with Selenium/WebDriver tests. I know that Play supports
I don't have any previous experience creating ActiveX-Controls. Information about the topic thats not
First question on stackoverflow. I have no previous experience of running a high traffic
I'm playing around with cookies. And I dont have any cookies called PHPSESSID. Do
I don't have any experience building software for Windows but I have experience with
I don't have any experience with SVG but I was hoping to use this
I don't have any experience writing drivers, but have a decent grasp on architecture,
I currently have a few closed-source applications that I have developed to learn a
I'm a completely newbie Scala programmer, and I have no previous experience with Java;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.