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 want to use this to get data from row out of mysql database
I use apache/passenger on my development machine, but need to add SSL support (something
When I set the GridLayout to the JPanel and then add something, it is
Quick PHP/MySQL question: I'm trying to display the data from a MySQL database table
How to I add something to the .gitignore so that the match is not
On euroworker.no/order (add something to the cart with Kjøp and Handlevogn). I have a
How can I add something in JavaScript that will check the website URL of
How can I add something in JavaScript that will check the web site URL
I have some data structures that stay unchanged if you try to add something
I don't know why this is erroring, but I'm just trying to add something

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.