Jump to content

Deprecated: mysql_connect()


nasserot

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...