Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'ROOT'@'localhost' (using password: YES) in C:\AppServ\www\Curso Web\06AplicacionCRUD\conexion.php on line 8 Error al conectar: Access denied for user 'ROOT'@'localhost' (using password: YES)
función conexionMySQL () { $ conexion = new mysqli ( SERVIDOR , USUARIO , PASO , DB ); if ( $ conexion -> connect_error ) { / * $ error = "<div class = 'error'>"; $ error. = "Error de Conexión N ° ". $ conexion-> connect_errno. " Mensaje del error: <mark>". $ conexion-> connect_error. "</mark>"; $ error. = "</div>"; morir ($ error) * / $ error . = " <div class = 'error'> Error de Conexión N ° % d Mensaje del error: <mark>%s</mark> </div> " ; printf ( $ error , $ conexion -> connect_errno , $ conexion -> connect_error ); }
function conexionMySQL() { $mysqli=new mysqli(localhost,ROOT,DBpepejuarez89,DBNAME); if (mysqli_connect_errno()) { die("Error al conectar: ".mysqli_connect_error());
$mysql = conexionMySQL();
$mysql
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)