The author has 9 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
2064 9
靠,PHP官方已經提醒大家不要再用mysql_connect了,提醒改用mysqli或PDO
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 5/31/15 8:20
mysql_connect (PHP 4, PHP 5)
mysql_connect — Open a connection to a MySQL Server
Warning This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:


mysqli_connect()
PDO::__construct()

http://php.net/manual/en/function.mysql-connect.php
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 2 Posted at: 5/31/15 8:21
在PHP5.5.0中被拋棄,在將來的版本會徹底移除!
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 3 Posted at: 5/31/15 9:00
This extension is deprecated as of PHP 5.5.0,
整個mysql擴展在PHP5.5中都已經被拋棄,不推薦使用了。
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 4 Posted at: 5/31/15 12:19
 robertpas550 at hotmail dot com ¶
3 years ago
New users are advised to use MySQL Improved mysqli_ functions rather than the older [replaced] mysql_ functions where applicable and subject the appropriate latest stable versions of Apache, php and MySQL, etc.

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 5 Posted at: 5/31/15 12:21
所有的mysql擴展頁面都掛上了醒目的紅框框:
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:

    mysqli_affected_rows()
    PDOStatement::rowCount()

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 7 Posted at: 6/1/15 12:18
mysqli也是物件導向的php庫。
而MySQL僅僅是一對函數,雖然c語言裡面也是這些函數。
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 8 Posted at: 6/1/15 12:19
剛開始用MySQL的時候我很不習慣,因為是字符控制台界面的。但現在我倒是覺得比Microsoft access好太多了。
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 9 Posted at: 6/1/15 12:26
mysqli在國內的某本書上介紹過。
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 10 Posted at: 6/4/15 22:56
其实MySQLi库我只用过一次
2010.7那次
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 2064 Replies: 9
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 6/4/15 22:56
Bar Hot Posts
Announcements