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 8431725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:55:58+00:00 2026-06-10T05:55:58+00:00

I was an extremely amauter php developer before I decided to jump on the

  • 0

I was an extremely amauter php developer before I decided to jump on the rails train. Now, I can say that I am a pretty good rails developer, and have come to love many of the features it offers. Mainly, I LOVE how easy it is to query in rails. For example:

@records = Model.where('column_name = ? and column_name = ?', params[:something], params[:something2])

This is easy to to do, and it even handles SQL injection. As much as I love rails, I am developing an app using PHP right now. I am at the point where I need to start putting a database together and begin querying it. So my question is, are there php libraries that work similar to rails queries? In other words, help with sql injection, ease of use, etc.? Any and all input would be appreciated.

  • 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-10T05:56:00+00:00Added an answer on June 10, 2026 at 5:56 am

    PHP provides a library called PDO, built into the language, which does exactly what you’re asking: http://php.net/manual/en/book.pdo.php

    What you’re asking about, by the way, is called “parameterised queries”.

    In fact, even the MySQLi library can do it.

    The one PHP library that can’t do it is the old MySQL library (ie functions like mysql_query() etc). This library is considered obsolete and is no longer maintained. If you’re still using it (which I guess you probably are if you don’t know about PDO or MySQLi), then the PHP manual recommends switching to one of the other two libraries.

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

Sidebar

Related Questions

i'm extremely frustrated right now. I can't figure out why my container won't extend
This may be an extremely easy question but I can't get my head around
I have an extremely simple page that I'm trying to view in the Facebook
Extremely basic question. Are there common actions I can perform using keyboard shortcuts in
I recently wrote an extremely basic edge detection algorithm that works on an array
I have some extremely complex queries that I need to use to generate a
I have an extremely simple IMultiValueConverter that simply OR's two values. In the example
I'm extremely unfamiliar with both .NET and VB.NET and can't quite figure out how
I'm extremely new to PHP and my first project was developing a comment system.
(extremely) inexperienced in C++ but I've been getting along ok until now and this

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.