Different Mysql And Mysqli. Mysql vs mysqli both are relational database. You still have the excapes fetches whiles if.
Please use the new mysqli library. You still have the excapes fetches whiles if. Mysqli also supports prepared statements which protect from sql injection.
Mysqli also supports prepared statements which protect from sql injection.
Firstly mysql extension is recommended to be used with mysql versions which are older than 4 1 3 while mysqli extension is recommended to be used with mysql versions 4 1 3 or newer. Mysql vs mysqli both are relational database. Mysqli provides a procedural way much similar to the mysql. Mysqli can be done procedural and object oriented whereas mysql can only be used procedurally.