Skip to content
Snippets Groups Projects
mysql.php 288 B
Newer Older
  • Learn to ignore specific revisions
  • Jonas Leder's avatar
    Jonas Leder committed
    <?php
    include "config.php";
    
    $conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase);
    // Check connection
    if ($conn->connect_error) {
    
    Jonas Leder's avatar
    Jonas Leder committed
        include "500.php";
    
        header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
        die(getError500());
    
    Jonas Leder's avatar
    Jonas Leder committed
    }