note 113768 deleted from mysqli.requirements by cmb
| From: | cmb@php.net | Date: | Tue, 01 Sep 2015 21:27:55 +0000 |
| Subject: | note 113768 deleted from mysqli.requirements by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203563@lists.php.net to get a copy of this message | ||
Note Submitter: Paul from miniBB
----
"php_mysqli does not replace the php_mysql library. It only extends it. You need the
php_mysql library !"
mysql_connect() is from another library. Surely, php_mysqli works WITHOUT php_mysql enabled on the
server. Nothing from php_mysql module is related to this.
Before switching to mysqli, you need to completely eliminate all "mysql_" functions in
your code. For example, mysql_connect() could be replaced to mysqli_connect() with an identifying
link in front. Like:
$link = mysqli_connect("myhost","myuser","mypassw","mybd");
Then each of mysqli command just should need to be referred to $link at first.