SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | // Create the fucking DB. | |
3 | - | $db new SQLite3('ChatlogDB.db'); |
3 | + | $db = new SQLite3('ChatlogDB.db'); |
4 | $db->queryExec('CREATE TABLE Chatlog(recordid INTEGER PRIMARY KEY, chatline TEXT)'); | |
5 | $db->close(); | |
6 | echo "Your fucking DB with the fucking table was succesfully created."; | |
7 | // Execute this shit just once. | |
8 | ?> | |
9 | ||
10 | <?php | |
11 | // Insert shit in the fucking DB. | |
12 | // [INSERT YOUR FUCKING CHATLINE PARSING CODE HERE] | |
13 | - | $db new SQlite3('ChatlogDB.db'); |
13 | + | $db = new SQlite3('ChatlogDB.db'); |
14 | $db->queryExec('INSERT INTO Chatlog (chatline) VALUES ($string)'); // Fucking change $string to the name of your string variable! | |
15 | $db->close(); | |
16 | ?> |