Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Use PDO. The top reason web applications get hacked is because of sql injection. PDO prevents this wonderfully while mysqli doesn't as much. Also, PDO supports switching to a different database more easily, while you are stuck with mysql when using mysqli. It's newer and better.
29th Sep 2016, 6:35 PM
Mythos