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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:21:09+00:00 2026-05-27T00:21:09+00:00

Unfortunately, I wrote a lot of code using mysql_query, mysql_fetch_array and mysql_num_rows calls. It’s

  • 0

Unfortunately, I wrote a lot of code using mysql_query, mysql_fetch_array and mysql_num_rows calls. It’s close to finish, but today I’ve read about PDO, mysqli.
The only hope I shouldn’t start over and spend weeks is the answer of
Well if you already have a lot of code written, I wouldn’t bother, but for any new projects I would strictly suggest PDO.– musicfreak May 15 ’09 at 5:23
The answer was 2.5 years ago, so the answer could be out of date as well.
One of the reasons to switch to PDO is that it helps protect against SQL injections. I “clean” all inputed strings so I think that’s not an argument for me. Better performance (if it’s really better) is important as well, but the web-site works fine even now.
Should I spend weeks to rewrite the code? Or that’s not a big deal if it works?
Sorry for this question, but I’m confused. Reading more documentation doesn’t help me to choose a proper answer in my case. I’m not sure if I spend a lot of time I will get any better results or performance (alghout if I start it now, I would start with PDO as it is newer).

Thank you.

  • 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-27T00:21:10+00:00Added an answer on May 27, 2026 at 12:21 am

    You don’t have to worry about switching. If the project is almost ready, and you will start on a new one soon, just follow the new, better practices with your next project.

    On the other hand, you just collected some useful experience. With a well-designed codebase, it should not be a lot of worry to switch between mysql_* and PDO. Write objects and methods to gather data, so your actual SQL calls will be quite few.

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

Sidebar

Related Questions

I've wrote some jquery code with some draggable elements and one droparea. Unfortunately my
I'm using a lot of SimpleDateFormat-objects within my Servlet. Unfortunately, SimpleDateFormat is not thread-safe.
I wrote the following class for producing monitoring output within an extra window. Unfortunately
News wrote that Eclipse 3.5 finally supports column selection. Unfortunately I don't know HOW
I wrote a persistent network service in Perl that runs on Linux. Unfortunately, as
Unfortunately, I need to do this. I'm using ELMAH for my error log. Before
I do a lot of tutorials using Wordpress. The main characteristic thing is that
I write Python script to copy files; unfortunately it keeps failing because filename is
I'm trying to write a small parser with Irony . Unfortunately I get a
Unfortunately, my question is not as simple as keeping track of two windows created

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.