-1

I have used PHP for years, and I always use mysql_* functions.

I don't really mind it a lot, but does mysqli_* function worth me to have a try? If I am gonna make a new project, which one should I choose?

Any advice is welcomed. Thanks in advance. :-)

Atav32
  • 1,788
  • 3
  • 23
  • 33
bombless
  • 23
  • 4

2 Answers2

2

Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial. (canonical answer from PHP chat, feel free to join)

Community
  • 1
  • 1
Dejan Marjanović
  • 19,244
  • 7
  • 52
  • 66
1

Use of mysql_* is discouraged.

IAmMearl
  • 487
  • 2
  • 7