5
The system I’m maintaining was using two types of query (don’t ask me why) and locally (localhost) works perfectly. When I uploaded the project to the server, the querys declared as such:
<?php $sql = mysql_query("INSERT INTO entrada_produto (id_produto, descricao, qtde, valor_unitario, unidade, cd, data_entrada) VALUES ('{$id_produto}', '{$descricao}', '{$qtde}', '{$valor_unitario}', '{$unidade}', '{$cd}', now())") or die(); ?>
Do not work. Show the following error:
Warning: mysql_query() [function.mysql-query]: Access denied for user.........
You have imported the database table into the server?
– paulomartinhago
Hello, I did the local export and imported to the database on the server.
– piters