Browse Source

Disable emulated prepares

master
CoalfaxRevamped 2 months ago
parent
commit
f6a3f96ae3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      connect.php

+ 1
- 0
connect.php View File

@@ -5,4 +5,5 @@ $password = "";
$dbname = "coalfax";

$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Loading…
Cancel
Save