まともな量のHTML/CSSを知っていますか?私はログインサーバーを作成したいと思いますし、ビデオからコードのほとんどを入手しました。誰かが私を助けて徹底的に説明できるので、私はそれが非常に高く評価されることを理解することができます。他のものが必要な場合は、私はそれを喜んで投稿します。C: webdev wamp www membershipSite classes Mysql.php 9行目のユーザー 'username' @ 'localhost'(パスワードは:YES)のアクセスが拒否されました
<?php
require_once 'includes/constants.php';
class Mysql {
private $conn;
function _construct() {
$this->conn = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die('There was a problem connecting to the database.');
}
function verify_Username_and_Pass($un, $pwd) {
$query = "SELECT *
FROM users
WHERE username = ? AND password = ?
LIMIT 1";
if($stmt = $this->conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pwd);
$stmt->execute();
if($stmt->fetch()) {
$stmt->close();
return true;
}
}
}
}
Mysql.phpの9行目は?? – Hackerman