Simple website with some JavaScript games.
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.

51 lines
1.1 KiB

  1. # Club-Panda
  2. A simple website with some JavaScript Games
  3. ## Preview
  4. **Preview site here: https://clubpanda.jrtechs.net**
  5. ## Contributing
  6. ### How to submit a PR
  7. 1. Fork this repo.
  8. 2. Checkout your fork.
  9. 3. Make changes and commit them to your fork.
  10. 4. Hit the button that says "Submit Pull Request" on your forked repo.
  11. ### SQL Lite DB Initialization
  12. ```sql
  13. sqlite3 clubpanda.sqlite
  14. CREATE TABLE scores (
  15. score_id INTEGER PRIMARY KEY AUTOINCREMENT,
  16. game INTEGER NOT NULL,
  17. user_id mediumint(9) NOT NULL,
  18. score mediumint(9) NOT NULL
  19. );
  20. CREATE TABLE users (
  21. user_id INTEGER PRIMARY KEY AUTOINCREMENT,
  22. first_name varchar(20) NOT NULL,
  23. last_name varchar(40) NOT NULL,
  24. user_name varchar(60) NOT NULL,
  25. pass char(40) NOT NULL,
  26. registration_date datetime NOT NULL,
  27. admin tinyint(1) NOT NULL
  28. );
  29. select score, users.user_name username from scores inner join users on users.user_id=scores.user_id where game = '1' order by score desc limit 20
  30. .exit
  31. ```
  32. Notes on php sqlite documentation: https://www.php.net/manual/en/sqlite3.construct.php