小编The*_*ola的帖子

在第9行的C:\ webdev\wamp\www\membershipSite\classes\Mysql.php中拒绝用户'用户名'@'localhost'(使用密码:YES)

我是所有这一切的新手,但我确实知道相当数量的HTML/CSS.我想创建一个登录服务器,我从视频中获得了大部分代码.如果有人可以帮助我并彻底解释,那么我可以理解,我将不胜感激.如果需要任何其他东西我会很乐意发布它.

<?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;
        }
    }

}
}
Run Code Online (Sandbox Code Playgroud)

mysql access-denied

5
推荐指数
1
解决办法
4万
查看次数

导航栏上只有文本链接

我看过其他类似的问题,但我无法将其应用于我的.我希望每个文本链接周围的框都是可点击的,而不仅仅是文本.

HTML

<div class="container">
    <ul class="nav">
        <li class="nav-home">
            <a href="index.html">Home</a>
        </li>
        <li class="nav-games"> 
            <a href="games.html">Games</a>
        </li>
        <li class="nav-chat">
            <a href="chat.html">Chat</a>
        </li>
        <li class="nav-suggestions">
            <a href="suggestions.html">Suggestions</a>
        </li>
    </ul>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS

.nav {
width: 900;
clear: right;
height: 55px;
margin-left: 22px;
margin-right: 22px;
padding: 0;
z-index: 5;
overflow: visible;
background: #161616; 
background: -moz-linear-gradient(top,  #161616 0%, #282828 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#161616), color-stop(100%,#282828)); 
background: -webkit-linear-gradient(top,  #161616 0%,#282828 100%);
background: -o-linear-gradient(top,  #161616 0%,#282828 100%);
background: -ms-linear-gradient(top,  #161616 0%,#282828 100%); 
background: linear-gradient(to …
Run Code Online (Sandbox Code Playgroud)

html css

0
推荐指数
1
解决办法
922
查看次数

标签 统计

access-denied ×1

css ×1

html ×1

mysql ×1