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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:06:59+00:00 2026-05-31T13:06:59+00:00

Well, on my php pages I am escaping in this manner: $title = Jack’s

  • 0

Well, on my php pages I am escaping in this manner:

$title = "Jack's Long 'Shoes'";
$title = mysql_real_escape_string($title);
$go = mysql_query("INSERT INTO titles (title) VALUES '$title'");

Then when I view this data via phpmyadmin, the data appears as it were before it was escaped, ie Jack's Long 'Shoes'

I was under the impression that it would look like:
Jack\s Long \Shoes\

Are the slashes supposed to actually be printed inside the mysql database field?

  • 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-31T13:07:00+00:00Added an answer on May 31, 2026 at 1:07 pm

    No. The escapes vanish once they pass into the data tables. That’s the whole points of escaping data – it’s like stuffing a letter into an envelope. The letter stays in the envelope (escaped) during its journey through the postal system. Once it gets to its destination (the database storage medium), it’s removed from the envelope and stored in its original form.

    If the escaping (envelope) was stored along with the letter, you’d have to UNESCAPE (open the envelope) it each time you pulled the letter out of the database.

    For databases, the escaping serves to “hide” SQL metacharacters from the query parser. Once the data’s passed through the parser and has been written into the DB, the escapes are no longer necessary. The db’s own internal handlers knows what is data and what is sql commands, so the artificial divisions created by the escapes are no longer necessary at that point.

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

Sidebar

Related Questions

does FastCGI work well with PHP? It seems that some people running Ruby on
I have a settings.php file with parametric variables and a functions.php with well, some
I'm a Python programmer who knows a bit of Ruby and PHP as well.
I need a regular expression in Javascript, as well as in PHP, for Indian
Ok well heres what I would like to do in PHP: http://www.wordle.net/ I know
I have used PHP for awhile now and have used it well with CodeIgniter,
I'm looking for a comprehensive and well maintained wiki syntax Parser for PHP, does
I am creating site with php. On localhost all works well. On my hosting
Hi im learning LISP and well, all day i program php for a living,
I'm working on my first PHP project, and it's going well. I've been able

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.