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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:38:54+00:00 2026-05-24T13:38:54+00:00

the main point is allow a filed can be inputted quotes they ask me

  • 0

the main point is
allow a filed can be inputted quotes they ask me to use pg_escape_string this function.

add1'skaka ==>add1''skaka

i mean if we input add1'skaka ==>add1''skaka function will add 1 more quote.
but into the HTML i don’t want it display such 2 quotes.

Do you have any 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-24T13:38:54+00:00Added an answer on May 24, 2026 at 1:38 pm

    pg_escape_string simply escapes your single quotes to allow strings to be safely stored into a PostgreSQL database. This needs to be done in order to avoid SQL injection attacks on your database. So yes it will double a quote in your database, but when you pull this data out of the database again, the extra quote will be gone.

    add1'skaka ==>add1''skaka
    

    In your database after a select you will only see add1’skaka

    See http://en.wikipedia.org/wiki/SQL_injection for more information about SQL injection and the threats it poses

    That or either: http://xkcd.com/327/ Little Bobby Tables =)

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

Sidebar

Related Questions

Since C+++ allows function overloading, can we overload main() ? For example, int main(const
What's the main point behind putting variables and method signatures inside ApplicationDelegate.h in Objective-C
I asked a question yesterday which got answers but didnt answer the main point.
I am currently trying to create a win32 service using pywin32. My main point
I have a project in mind whose main selling point would be very good
Can I use os.system() or subprocess.call() to execute a Python program on a webserver?
inHi, this question is fast, but from my point of view its pretty hard.
I'm trying to unit test some code that looks like this: def main(): parser
Can someone point me to documentation for the scope buttons on UISearchDisplayController? I'm looking
This code (taken from Learn You A Haskell ): main = do putStr Hey,

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.