すくすくゴートうちゃんのサーヴァ(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chat.mod.php 395 B

1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526
  1. <?php
  2. class
  3. Chat
  4. {
  5. public int $id;
  6. public int $user_id;
  7. public string $pass;
  8. function
  9. insert ():
  10. int
  11. {
  12. $sql = "
  13. INSERT INTO
  14. chats (
  15. user_id,
  16. text)
  17. VALUES
  18. ({$this -> user_id},
  19. '{$this -> text}')";
  20. $GLOBALS['__db_connection'] -> query ($sql)
  21. or die ("db_insert error $sql");
  22. }
  23. }