我有一个简单的成员表,当在页面上的php中输出时,总是显示为小写。
成员名称不是mysqli中的全部小写字母,但是当我使用
时<?php echo $_SESSION['username'];?>
它们总是显示为小写字母..
以下是我正在使用的一些代码。
<?php
session_start();
require "config.php";
if(isset($_SESSION['username'])){
}
if(isset($_POST['submit']))
{
$user = $_POST['user'];
$pass = $_POST['pass'];
$user = stripslashes($user);
$pass = stripslashes($pass);
$user = mysqli_real_escape_string($con, $user);
$pass = mysqli_real_escape_string($con, $pass);
}
?>
$query = mysqli_query($con,"SELECT * FROM members WHERE username = '$user'") or die("Can not query the TABLE!");
$add = mysqli_query($con,"INSERT INTO members (id, username, password) VALUES (null, '$user' , '$pass') ") or die("Can't Insert! ");