mysql_change_user

2009-06-11 17:36 / no comment / 1 views /

(PHP 3 <= 3.0.13) 改变当前活动连接中登录的用户

声明

int _change_user ( string $user , string $password [, string $database [, resource $link_identifier ]] )

_change_user() 改变当前活动的连接中或者可选参数link_identifier所指连接中,己登录的用户。如果数据库被指定了,它将会是学前补改变的用户正在使用的数据库。如果新用户和密码认证失败,当前连接的用户保持活动。

这个函数由于受到反对,在新版本的PHP中已经不存在了。

* mysql_connect() – 打开一个到MySQL服务器的连接
* mysql_select_db() – 选择一个MySQL数据库
* mysql_query() – 发送一个MySQL查询

Tags: .

Get a Trackback link

No Comments Yet

You can be the first to comment!

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>