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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:24:43+00:00 2026-05-15T05:24:43+00:00

When i add something to my mysql db, i use mysql_real_escape_string(), then put it

  • 0

When i add something to my mysql db, i use mysql_real_escape_string(), then put it in the database.

do i need to stripslashes() when i later get it from the db with mysql_query() and mysql_fetch_array(), or does one of these functions do it for me, or is it just not necesseary?

  • 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-15T05:24:44+00:00Added an answer on May 15, 2026 at 5:24 am

    The escape characters are never stored in the database. They go away as the SQL parser parses your query.

    Your question displays a fundamental misunderstanding of how escaping works. Escape characters are only a way to tell the parser to ignore the special meaning the parser gives to a character. After the string has been parsed into a structure in memory, there is no reason to keep the escape characters.

    If you’re seeing extraneous slashes, your server might be configured wrong and you might be getting bitten by a retarded PHP feature called magic quotes.

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

Sidebar

Related Questions

I need to add full web search to my site. I need something like
How to use aspectJ to add functionality temporarily to some java application? Something like
How do you use the CSS content property to add HTML entities? Using something
In the footer of my page, I would like to add something like last
I would like to do something like add a nice-to-Excel-functions Name property to the
I would like to do something like the following: def add(a, b): #some code
I just learned something interesting. The add method for the javascript select object in
This has got to be something I just missed, but how do I add
Or, in other words, what is wrong with something like - new Method[] {Vector.add(),
Add service reference to Amazon service fails, saying Could not load file or assembly

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.