Home Forums General Discussions Why use MySQLi instead of MySQL

Tagged: 

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

    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.

    #385
    Umar Hassan
    Keymaster

    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.