ユーザのパスワード認証のための DB 追加
This commit is contained in:
@@ -5,6 +5,10 @@ Chat
|
||||
{
|
||||
private $db;
|
||||
|
||||
private $id;
|
||||
var $user_id;
|
||||
var $pass;
|
||||
|
||||
function
|
||||
__construct ()
|
||||
{
|
||||
@@ -20,9 +24,7 @@ Chat
|
||||
}
|
||||
|
||||
function
|
||||
send (
|
||||
int $user_id,
|
||||
string $text):
|
||||
insert ():
|
||||
void
|
||||
{
|
||||
$sql = "
|
||||
@@ -32,8 +34,8 @@ Chat
|
||||
text)
|
||||
VALUES
|
||||
(
|
||||
$user_id,
|
||||
'$text')";
|
||||
{$this -> user_id},
|
||||
'{$this -> text}')";
|
||||
$this -> db -> query ($sql) or die ("db_insert error $sql");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user