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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:01:47+00:00 2026-05-15T15:01:47+00:00

I saw this comment…. http://www.php.net/manual/en/function.mysql-real-escape-string.php#93005 And began to wonder why this would be a

  • 0

I saw this comment…. http://www.php.net/manual/en/function.mysql-real-escape-string.php#93005

And began to wonder why this would be a bad idea.

  • 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-05-15T15:01:47+00:00Added an answer on May 15, 2026 at 3:01 pm

    It’s a bad idea for a couple reasons:

    • First, it assumes that your inputs
      will always be going into the
      database and into the database alone.
      What if something is going to be used
      in HTML output? Or in an email? Or
      written to a file? Or lots of other
      things.. your filtering should always
      be context-sensitive.
    • More importantly, it encourages
      sloppy use of GET, POST, etc because
      there’s no indication that they’ve
      been filtered. If someone sees you
      use

      echo $_POST[‘name’];

      on a page, how would they know it’s
      been filtered? Or even worse… are
      you sure it has been? What about that
      other app? You know, the one you were
      just handed? What would new developers do? Would they even know that filtering is important?

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

Sidebar

Related Questions

just saw this comment in a what JS lib do you use poll @Xanti
I was reading a forum recently, and saw this comment: So, you see you've
I saw this question asked about C# I would like an answer for PHP.
I saw this code in a comment for the article Never-ending Shuffled Sequence .
I saw this new YouTube function from their video comments where it shows a
I just saw the first comment to this question Inserting into a serialized array
So I saw this question/comment... How to integrate SQL Server 2005 Express Edition to
In a comment on this question , I saw a statement that recommended using
When reading through parfib.hs code on github, I saw this comment about memory allocation
So in a comment from another question , I just saw this example for

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.