Jump to content

Recommended Posts

Posted (edited)

Olá, amigo tenho tido um problema e não sei como resolver, pois aqui no meu computador quando eu estava desenvolvendo esse sistema não apareceu nunca este erro, quando coloquei ele no cPanel começou isso, domínio: [/size]painel.heliohost.org

Mensagem: Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in [/size]/home/nasserot/public_html/app/database/mysql.php on line [/size]37

 

cleardot.gif

 

translate.google.com:

 

Hello, friend I have had a problem and I do not know how to solve it, because here on my computer when I was developing this system never appeared this error, when I put it in cPanel started it, domain

Edited by Krydos
translated
Posted

You can get rid of that by adding 

error_reporting(0);

To the top of your scripts.

 

It's because mysql_* functions are obsolete and you should be using mysqli instead. They'll still work as long as you run a PHP 5.x version though. They're not supported in PHP 7.x

Posted (edited)

Vi em alguns fóruns que isso não é muito recomendado, mas vou colocar.

 

translate.google.com:

 

I have seen in some forums that this is not very recommended, but I will put

Edited by Krydos
translated
Posted

The proper way to fix it involves rewriting your program to use the modern mysqli functions (which I would recommend, but will take a lot longer). This just makes it work without fixing the outdated functions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...