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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:45:32+00:00 2026-05-26T20:45:32+00:00

I am thinking of practical solutions for this escaping methods. mysql_query doesn’t make two

  • 0

I am thinking of practical solutions for this escaping methods. mysql_query doesn’t make two queries at once so the attacker can’t use things like ‘ OR 1; delete from user; select * from //he would guess the rest of the query here. (it becomes confusing)

(I obviously don’t like pdo, it is not practical in oop when you need to define a connection in each function of each class, otherwise I have to use $this or global $dbc each time.)

  • 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-26T20:45:33+00:00Added an answer on May 26, 2026 at 8:45 pm

    Not really, no. There are multiple ways that a query can be “unsafe”, besides burying a separate DML or DDL or statement. For example:

    • A large, very-poorly-performing subquery could be used to bring your database to a crawl.
    • A branch of the WHERE-clause could invoke an arbitrary stored procedure, with whatever effects that might have.

    and every specific query would have to be vetted for the possibility of random code being inserted in the middle. For example, if the query results will somehow be presented to the user, then a subquery pointing at a table with authentication information could potentially let the user infer a great deal. (Imagine a series of tests where exists (select 1 from app_users where username = 'JoeAdmin' and password like 'a%'), then password like 'ba%' once the b is identified, and so on. Even if the hacker doesn’t initially know that you have a table named app_users, they can quickly figure that out by using this sort of approach on system tables.)

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

Sidebar

Related Questions

Thinking about my other problem , i decided I can't even create a regular
Thinking that the answer to this is pretty obvious but here it goes: When
So far I've migrated two ASP.NET MVC 1 solutions to MVC 2 and therefore
I am specifically thinking about unsigned int . Here is a practical example: what
I was trying to do some practical work, and was thinking to do something
This isn't a complicated question. I was just thinking through best practice and thought
The question can be seen as both practical and theoretical. I am designing a
I'm thinking about embedding arbitrary JSON in the DOM like this: <script type=application/json id=stuff>
I am thinking it is a best practice to declare them as static, as
Thinking about getting into .net technology project management I've had plenty of experience with

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.