nav trae elementos en base de datos falta mostrarlos bien

This commit is contained in:
2019-02-22 19:11:06 -06:00
parent 230789d82a
commit d77fa1e65d
14 changed files with 2035 additions and 199 deletions
+54
View File
@@ -0,0 +1,54 @@
<?php
/*
* local
* */
$host = 'localhost';
$user = 'blender';
$pass = 'avatares1';
$dbname = 'portal_editorial';
$dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
try{
$conexion = new PDO($dsn,$user,$pass);
$conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
$conexion->exec('SET CHARACTER SET utf8');
}catch(PDOException $e) {
$error = "Error en la linea:" . $e->getLine() . "<br>";
$error = "Error: " . $e->getMessage() . "<br>";
echo $error;
}
/*
* conexion viper
*
*
*
$host = '132.248.80.194';
$user = 'usr_inv_material';
$pass = 'tint4sBond';
$dbname = 'kalinga_inventario_material';
$dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
try{
$conexion = new PDO($dsn,$user,$pass);
$conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
$conexion->exec('SET CHARACTER SET utf8');
}catch(PDOException $e){
$error = "Error en la linea:" . $e->getLine(). "<br>";
$error = "Error: " . $e->getMessage() . "<br>";
echo $error;
}
*
* */