correio25 Posted June 13, 2015 at 12:20 PM Report #584762 Posted June 13, 2015 at 12:20 PM Boa tarde, Estou a fazer uma query à BD mysql e depois apresento o resultado numa tabela. A seguir, ainda no mesmo ficheiro, realizo a mesma query à mesma BD e apresento o resultado novamente numa tabela, mas agora com uma condição. Em vez de aparecerem as tabelas estão aparecer warnings. Já modifiquei alguns privilégios na BD, mas o problema continua. Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in ... Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in ... Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in ... Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in ... Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in ... Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in ...
HappyHippyHippo Posted June 13, 2015 at 01:34 PM Report #584765 Posted June 13, 2015 at 01:34 PM A unica mensagem que interessa e a primeira. Continuas sem permissoes para aceder a base de dados Once esta a base de dados e qual o novel de permissoes do utilizador "user" ? IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
KTachyon Posted June 13, 2015 at 02:03 PM Report #584769 Posted June 13, 2015 at 02:03 PM Confirma que lhe deste permissões para aceder sem usar password no localhost. “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” -- Tony Hoare
Solution correio25 Posted June 15, 2015 at 09:09 AM Author Solution Report #584818 Posted June 15, 2015 at 09:09 AM O problema era um mysql_close() estre as duas consultas.
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