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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:07:04+00:00 2026-05-23T17:07:04+00:00

I have just read about http://marc.info/?l=php-internals&m=131031747409271&w=2 . I use mysql_query in all my php

  • 0

I have just read about http://marc.info/?l=php-internals&m=131031747409271&w=2.

I use mysql_query in all my php code for the last year to access my mysql databases.

Does the information at that link, from the PHP leader, mean I can no longer use mysql_query?

Will mysql_query stop working in the future? If so, when will this happen? What is the new way to access a mysql database with php?

Would someone mind simplifying what the link is saying in simply english?

I am worried, thank you.

Extra:
What does deprecated actually mean, it is not a common word for non technical people…? instead of mysql_query, what do I use? Do I write mysqli_query? or PDO_query? what is the difference between mysql and mysqli and pdo queries? Do I need to use mysqli or pdo software instead of mysql databases?

  • 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-23T17:07:05+00:00Added an answer on May 23, 2026 at 5:07 pm

    For years now, it’s been recommended to use The MySQLi or PDO extensions — and not the old MySQL one.

    As a reference, see this page of the PHP manual : [**Overview of APIs**][1] *(quoting)* :

    What is PHP’s MySQL Extension?

    This is the original extension designed to allow you to develop PHP
    applications that interact with a MySQL database. The mysql extension
    provides a procedural interface and is intended for use only with
    MySQL versions older than 4.1.3. This extension can be used with
    versions of MySQL 4.1.3 or newer, but not all of the latest MySQL
    server features will be available.
    If you are using MySQL
    versions 4.1.3 or later it is strongly recommended that you use the
    mysqli extension
    instead.

    The link you posted states that `mysql_*` functions are not going to disappear soon, so don’t panick *(quoting)* :

    Don’t panic! This is not a proposal to add errors or remove this
    popular extension.
    Not yet anyway, because it’s too popular to do
    that now.

    But the idea is that `mysql_*` functions should not be used anymore *(as it’s been the case for years already)* — but people are still using these, instead of [**PDO**][2] or [**MySQLi**][3].

    An idea / proposition to help people realize that there are better solutions than mysql_* would be to mark those old functions as deprecated — in a future version of the language.

    It will probably not happen for PHP 5.4 (which is already in alpha stage) ; maybe for PHP 5.5 — but that one is far from released — probably at least two years…

    Right now, for your new projects, you should probably not use `mysql_*` ; instead, you should use MySQLi or PDO, which are more recent, and support more features of the MySQL server.

    But for your old code, it’s probably OK to keep using the mysql_* functions — at least for a while: no need to re-write your existing applications.


    What does deprecated actually mean, it is not a common word for non
    technical people…?

    It means that, when those functions are deprecated and you try calling them, you will get a warning saying you are using old functions, that should not be used anymore — and that will disappear one day or another.

    instead of mysql_query, what do I use? Do I write mysqli_query? or
    PDO_query?

    Read the documentation of MySQLi and PDO 😉

    what is the difference between mysql and mysqli and pdo queries?

    Those are two extensions :

    • MySQLi is the improved extension, to communicate with a MySQL Server
    • PDO is an extension that allows to communicate with several SQL Servers (Oracle, SQLIte, MySQL, …) with the same PHP classes.

    Do I need to use mysqli or pdo software instead of mysql databases?

    On the Server-side, you will still use the same MySQL Server.

    On the client-side, you choose the extension you want.

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

Sidebar

Related Questions

I have just read about Guava and checked out its source code but don't
I recall I have read about a parser which you just have to feed
I just started to read about this new technology... Does someone have some knowledge
I have just switched from svn to mercurial and have read some tutorials about
I just got Delphi 2009 and have previously read some articles about modifications that
I just want what my title says.I have already read all the previous similar
I just read http://www.ozdroid.com/#!BLOG/2010/12/19/How_to_make_a_local_Service_and_bind_to_it_in_Android about how there can be memory leaks when binding to
I have read about Java enums and use them regularly. However, I don't understand
i have just started using Moq ver (3.1) and i have read blogs and
I am new to Java. I just read that class variables in Java have

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.