Make sure you get the host part correct. MySQL authentication also looks at the host, apart from the username and password. Your code above, assumes that the host is localhost. But your database privileges might be otherwise.
In reply to Re: why this simple script return error ?
by arc_of_descent
in thread why this simple script return error ?
by adam_blackice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |