Mình có 2 kết nối như sau : 1 : $con=mysqli_connect("example.com","peter","abc123","my_db"); 2: $con=mysql_connect("example.com","peter","abc123","my_db"); Cái thứ nhất ko báo lỗi, nhưng cái thứ 2 bao lỗi ( mysql va mysqli); vậy nguyên nhân vì sao ? các bạn giúp mình với
The mysql_*() family of functions is based on an old C wrapper that is not maintained. It's really old, and scripted to be deprecated in future versions of PHP. MySQLi makes use of Prepared Statements, which are immune to SQL Injection attacks. MySQLi can be used in the same way as the mysql_*() functions, or in an OO manner