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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:22:00+00:00 2026-06-04T04:22:00+00:00

I am doing an e-commerce CMS and all my SQL queries are mysql_* functions.

  • 0

I am doing an e-commerce CMS and all my SQL queries are mysql_* functions.
Since they are getting obsolete, I would like to incorporate PDO’s/prepared statement.

From a security perspective, should I only use PDO’s/prepared statement for queries which involve user input?
Can I just use mysql_* functions for queries that don’t have user input in them?

Also, I’ve been googling “PDO vs prepared statement” with no success, to see what the differences are. Is there any difference at all or are they the same thing?

I’ve also been advised to use MySQLi. Can I stick to PDO’s without MySQLi?

Thanks a lot for your suggestions. Regards

  • 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-04T04:22:01+00:00Added an answer on June 4, 2026 at 4:22 am

    Since they are getting obsolete

    Since when? They are not deprecated.

    All of mysql ,mysqli and PDO ultimately do the same thing, but in very different ways. Using three different APIs to the same data is not a good idea – use one and learn how to use it effectively. Of course you can become expert in all of them, but don’t mix and match in the same project – other people may want to look at your code.

    If you’re working on a medium to large scale project, then define your own abstraction layer – that way it doesn’t matter which you use. (NB despite the hype making an application portable across different DBMS is not as simple as using an abstraction layer).

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

Sidebar

Related Questions

I am coding a E-commerce website/admin interface for a client. They are doing some
Basically, I would like a brief explanation of how I can access a SQL
I'm working on a e-commerce website in PHP and I would like to implement
Doing something like this: from zipfile import ZipFile #open zip file zipfile = ZipFile('Photo.zip')
Doing a uni assignment with HTML, XML and php 5.3 (no SQL). Building a
I am doing an e-commerce solution in ASP.NET which uses PayPal's Website Payments Standard
I'm doing an e-commerce website for a client who sells lingerie, I've written up
I create a database for E-commerce. I have one thing doing it wrong and
I'm working on adding some analytics code into our e-commerce website. What I'm doing
I am writing a T-SQL Query, I am developing the e-commerce website, in that

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.