Disable error reporting | PHP

This function is sued for setting the error reporting level at runtime. To completely disable error reporting, the value is ‘0’ zero. syntex:

example:

Other kind of error reporting levels

Using combinations of error levels Example:

  Link to this post!

Escaping ‘%’ in MySQL LIKE statement when sprintf

I wanted to run a SQL query against MySQL database server which contains search string and need to be formated using sprintf. The problem arise when format. It is because of the sign “%” am using to advance my search term. The query was…

Here where the error fires. Thanks God, I found the […]