nasserot Posted January 11, 2018 Posted January 11, 2018 (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 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 January 11, 2018 by Krydos translated
wolstech Posted January 11, 2018 Posted January 11, 2018 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
nasserot Posted January 12, 2018 Author Posted January 12, 2018 (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 January 12, 2018 by Krydos translated
wolstech Posted January 12, 2018 Posted January 12, 2018 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now