How to hide an error message

前端 未结 3 1176
遇见更好的自我
遇见更好的自我 2020-12-18 12:21

I want to hide all mysql error messages without using mysql_error(). Are there any solutions?

3条回答
  •  生来不讨喜
    2020-12-18 12:35

    Yes you can add @ before all mysql queries.

    example:

    $result = @mysql_db_query ("database","SELECT * FROM agents WHERE ID = '$id'");

提交回复
热议问题