Ver original$conex = new conexion(); $newConnection = $conex->NewConnection('localhost','s05ad7ee_decompras','s05ad7ee_decompr','decompras'); $_SESSION['conexionBD']=$conex;