How to Solve MySQL extension is deprecated?

By | February 7, 2015

Notice: A non well formed numeric value encountered in /home/cinemau0/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

How To Slove the Mysql extension is Deprecated ? and What is Deprecated Error?

After PHP5 version updated mysql_connect() is updated with Mysqi_Connect().

if you used old version of MYSQL_CONNECT() for database it shows Deprecated Error
For Example

CODE FOR CONNECT in old version

CODE FOR CONNECT in new version

Its look all database name also in same fields
Query:


Fast and Easy Solution
Suppress all deprecated warnings including them from mysql_*:

Insert this code in the top of the php page.
If you have further questions: Just left them below in the comments
Enjoy Easy Coding