File "modelo_conexion-20260419154122.php"

Full Path: C:/wamp64/www/INVENTAPP/models/modelo_conexion-20260419154122.php
File size: 625 bytes
MIME-type: text/x-php
Charset: utf-8

<?php 
class Conexion{	  
    public static function Conectar() {        
        define('servidor', '192.200.100.40');
        define('nombre_bd', 'inventario');
        define('usuario', 'SANMARINO');
        define('password', 'sanmarino2021*');					        
        $opciones = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8');			
        try{
            $conexion = new PDO("mysql:host=".servidor."; dbname=".nombre_bd, usuario, password, $opciones);			
            return $conexion;
        }catch (Exception $e){
            die("El error de Conexión es: ". $e->getMessage());
        }
    }
}