You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
388 B

<?php
$link = @mysqli_connect("127.0.0.1", "my_user", "my_password", "my_db");
//如果去掉@,会显示错误信息
//Warning: mysqli_connect(): (HY000/1045): Access denied for user 'my_user'@'localhost' (using password: YES) in D:\code_software\xampp\htdocs\php_demo\14错误和异常处理\06-错误控制运算符.php on line 2
//如果加上@,则不会显示
?>