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.

7 lines
388 B

  1. <?php
  2. $link = @mysqli_connect("127.0.0.1", "my_user", "my_password", "my_db");
  3. //如果去掉@,会显示错误信息
  4. //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
  5. //如果加上@,则不会显示
  6. ?>