PHP, learn by doing
Using sqlite3 and PHP to create a simple web form
Practice on my Ubuntu Laptop
1 2 3 4 5 6 7 8 9 10 11
| sudo apt install php-cli
sudo apt install sqlite3
sudo apt install libapache2-mod-php
sudo apt install php8.1-sqlite3
|
Commands
sqlite3
Some command
1 2 3 4 5 6 7 8 9 10 11 12 13
| .tables
.headers ON
CREATE TABLE user_table(id INTEGER PRIMARY KEY, username TEXT, description TEXT, points INT);
INSERT INTO user_table(username, description, points) VALUES('Alex', 'This is a good name', 52642);
select * from usertable;
DROP TABLE table01;
.exit
|