I got this error message “Access denied for user ‘estatec’@‘localhost’ (using password: NO)” and Im not sure why because I had configured all the data in a file named “datosconeccion.php” that just contains all conection data and it looks like this:
<? $dbServer = 'localhost'; $dbUser = 'estatec'; $dbPassword = '********'; $dbName = '*******'; ?>Then in the main script I have something like this
<?php include("/datosconeccion.php"); $mysql = mysql_connect($dbServer, $dbUser, $dbPassword) or die(mysql_error()); mysql_select_db( $dbName ); Im using version 5.2.17 of PHP. I tried to declare the same vars in the main script and it worked so Im not really sure why with the include is not working. Any help will be really apreciated