Update connectionDB.php

This commit is contained in:
NikolaiDerDeutsche
2023-12-03 19:44:34 +01:00
committed by GitHub
parent 7f10b8af27
commit b206e79018

View File

@@ -1,5 +1,5 @@
<?php
$pdo = new PDO("pgsql:host=localhost;dbname=tinytalkhub;user=postgres;password=tygarin2005");
$pdo = new PDO("pgsql:host=localhost;dbname=tinytalkhub;user=postgres;password=testing");
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$get_user = $pdo->prepare("SELECT * FROM users WHERE username = ? AND password = ?; ");
$get_user_password = $pdo->prepare("SELECT * FROM users WHERE id = ?");