array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ref.mysql.php', 1 => 'MySQL 函数', ), 'up' => array ( 0 => 'book.mysql.php', 1 => 'Mysql(原始)', ), 'prev' => array ( 0 => 'mysql.examples-basic.php', 1 => 'MySQL 扩展概述范例', ), 'next' => array ( 0 => 'function.mysql-affected-rows.php', 1 => 'mysql_affected_rows', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/mysql/reference.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/ref.mysql.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
注意:
大多数 MySQL 函数的最后一个可选参数是
link_identifier
。 如果没有提供这个参数,则会使用最后一个打开的连接。 若不存在这个最后打开的连接,则会尝试用 php.ini 里定义的默认参数来连接。 如果没有成功连接,函数会返回false
。