Home Forums General Discussions Why use MySQLi instead of MySQL


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #381
    Umar Hassan

    There any many reasons for using MYSQLi extension instead of MySQL. Here are some of those:

    • MySQLi provides prepared statements – which is a safer way of sending data to MySQL and protecting you from SQL injection. This single reason is enough for always using MySQLi instead of MySQL.
    • MySQLi has many of the MySQL features.
    • MySQLi is object orientated.
    • MySQLi supports prepared statements, transactions and multiple statements.
    • The old MySQL extension is deprecated as of PHP 5.5.0

    There are many other benefits of MySQLi but you should focus on security and stability.

    Umar Hassan

    MySQLi protects against SQL injection attacks using prepared statements. Check out this link Prevent SQL inection with MySQLi Prepared Statements.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.