Deprecated: mysql_connect()

前端 未结 15 1363
醉酒成梦
醉酒成梦 2020-11-22 06:55

I am getting this warning, but the program still runs correctly.

The MySQL code is showing me a message in PHP:

Deprecated: mysql_connect(): T

15条回答
  •  误落风尘
    2020-11-22 07:49

    Its just a warning that is telling you to start using newer methods of connecting to your db such as pdo objects

    http://code.tutsplus.com/tutorials/php-database-access-are-you-doing-it-correctly--net-25338

    The manual is here

    http://www.php.net/manual/en/book.pdo.php

提交回复
热议问题