请看代码,数据库关闭指令将关闭哪个连接标识?( )<;?$link1 =mysql_connect("localhost","root","");$link2 =mysql_connect("localhost","root","");mysql_close();?>;
A: $link1
B: $link2
C: 全部关闭
D: 报错
A: $link1
B: $link2
C: 全部关闭
D: 报错
举一反三
- 请看下面的代码,数据库关闭指令将关闭哪个链接标识?( ) <?php $link=mysql_connect("localhost","root",""); $link2=mysql_connect("localhost","root",""); mysql_close(); ?>
- 在以下PHP链接数据库语句中,数据库关闭指令将关闭哪个连接标识:<?$link1=mysql_connect("localhost","root","");$link2=mysql_connect("localhost","root","");mysql_close();?> A: 报错 B: 全部关闭 C: $link1 D: $link2
- 连接 MySQL 数据库的正确方法是( ) A: mysql_open("localhost","root","root"); B: mysql_connect("localhost","root","root"); C: connect_mysql("localhost","root","root"); D: dbopen("localhost","root","root");
- 使用mysql扩展连接 MySql 数据库的正确语法是? A: mysql_connect($username, $password) B: connect_mysql($username, $password) C: mysql_connect($servername, $username, $password) D: mysql::connect($servername, $username, $password)
- 连接本地MySQL数据库的命令是“mysql -h localhost -u root -p”。