|
|
před 3 roky | |
|---|---|---|
| RepoJS | před 7 roky | |
| games | před 3 roky | |
| includes | před 3 roky | |
| nbproject | před 8 roky | |
| php_docker | před 3 roky | |
| user | před 3 roky | |
| .gitignore | před 8 roky | |
| Dockerfile | před 5 roky | |
| LICENSE | před 7 roky | |
| README.md | před 3 roky | |
| about.php | před 7 roky | |
| admin.php | před 7 roky | |
| club_connect.php | před 3 roky | |
| docker-compose.yml | před 3 roky | |
| games.php | před 7 roky | |
| index.php | před 7 roky | |
| site.conf | před 5 roky | |
A simple website with some JavaScript Games
Preview site here: https://clubpanda.jrtechs.net
sqlite3 clubpanda.sqlite
CREATE TABLE scores (
score_id INTEGER PRIMARY KEY AUTOINCREMENT,
game INTEGER NOT NULL,
user_id mediumint(9) NOT NULL,
score mediumint(9) NOT NULL
);
CREATE TABLE users (
user_id INTEGER PRIMARY KEY AUTOINCREMENT,
first_name varchar(20) NOT NULL,
last_name varchar(40) NOT NULL,
user_name varchar(60) NOT NULL,
pass char(40) NOT NULL,
registration_date datetime NOT NULL,
admin tinyint(1) NOT NULL
);
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
.exit
Notes on php sqlite documentation: https://www.php.net/manual/en/sqlite3.construct.php