RotativaPT 4 Posted September 5, 2016 Boas pessoal eu de momento estou a ter um problema com o meu website eu configurei o config.php bem e quando entro no site aparece-me isto: Parse error: syntax error, unexpected 'account' (T_STRING) in /usr/local/www/apache24/data/config.php on line 10 Linha 10: $mysql_db = "account"; alguém me poderá ajudar? Share this post Link to post Share on other sites
0 RotativaPT 4 Posted September 5, 2016 Já esta a funcionar.Só que agora aparece : Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/local/www/apache24/data/config.php on line 16 alguém me poderá ajudar xD ? Share this post Link to post Share on other sites
0 Annie 1,207 Posted September 5, 2016 Recomendo reveres os básicos de PHP se queres ter um website aberto, esses erros são básicos. A extensão mysql já foi deprecated há algum tempo, estás a usar alguma coisa antiga. Ou recodificas isso para PDO/Mysqli ou arranjas um website mais recente. Share this post Link to post Share on other sites
0 RotativaPT 4 Posted September 5, 2016 ok obrigado :p Share this post Link to post Share on other sites
Boas pessoal eu de momento estou a ter um problema com o meu website eu configurei o config.php bem e quando entro no site aparece-me isto:
Parse error: syntax error, unexpected 'account' (T_STRING) in /usr/local/www/apache24/data/config.php on line 10
Linha 10: $mysql_db = "account";
alguém me poderá ajudar?
Share this post
Link to post
Share on other sites