Deprecated: mysql_connect()

I am getting this warning, but the program still runs correctly.

The MySQL code is showing me a message in PHP:
Deprecated: mysql_connect(): The mysql extension is deprecated and
will be removed …