Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • fefe4914206615f14082cb56de398bc59917d49f
  • master default
  • main protected
3 results

connect.php

Blame
  • connect.php 347 B
    <?php
    $host = '10.104.13.99';
    $dbname = 'shop_db';
    $username = 'root';
    $password = 'FraP1bdIap';
    
    try {
        $conn = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
        $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    } catch (PDOException $e) {
        die("Connection failed: " . $e->getMessage());
    }
    ?>