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

  • Home
  • SEARCH
  • 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 8048773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:35:03+00:00 2026-06-05T06:35:03+00:00

My application persists a large amount of data into a MySql database, and I’m

  • 0

My application persists a large amount of data into a MySql database, and I’m wondering if I should handle the cleaning/escaping with a separate class, or if this is overkill? Also, I’m using prepared statements with PDO, so I’m not exactly sure how much cleaning or escaping data I should be doing in combination with binding parameters.

I’m aware of the old Perl adage, “There’s more than one way to do it,” so I’m not asking for an actual solution. I’m just trying to weigh the benefits of calling in another class to handle the escaping, or if the simplicity of this process would better be handled locally.

  • 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-06-05T06:35:05+00:00Added an answer on June 5, 2026 at 6:35 am

    If you need to do so, then why not? There’s no overkill when putting stuff in a class and then requiring it. It will also allow you to test your code.
    I don’t see another way to do that anyway, except using bare PHP functions.

    By the way, PDO does escaping. You class would only handle cleaning.

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

Sidebar

Related Questions

I am developing an iPhone application that persists data to a SQLite3 database. For
I im developing a application in which I continuously download large amount of data.
We are trying to implement the Microsoft Sync Framework into our application that persists
Application is running in my local system app.config file <add key=dbconn value=Data Source=(local);database=VTech;User ID=sa;Password=sa;
Suppose I have a CMS application written in Node.js which persists data on a
My application caches some data on disk. Because the cache may be large, it
I am trying to import details from an access database into my sql application
Is it possible to set a cookie in an iPhone Application that persists, so
Application[temp] = 8; should set the value 8 to the key temp . However,
My application uses large trees of domain objects and for most of these objects

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.