View Single Post
Old 01-31-2013, 09:01 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
MYSQLI_ can only access mySQL databases,

PDO can access mySQL databases as well as other databases (but because it supports multiple databases it is slightly slower).

Both support PREPARE and BIND commands which allow you to keep your SQL and data completely separate and so remove all possibility of injection.

MYSQL_ is being removed because it doesn't support all the modern functionality that mySQL databases support such as PREPARE and BIND.

It is just the MYSQL_ interface that is being deleted. The other two ways to access mySQL databases still exist and both have been recommended as replacements for MYSQL_ since PHP 5 was first released.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Users who have thanked felgall for this post:
needsomehelp (01-31-2013)