Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Create the fucking DB.
- $db = new SQLite3('ChatlogDB.db');
- $db->queryExec('CREATE TABLE Chatlog(recordid INTEGER PRIMARY KEY, chatline TEXT)');
- $db->close();
- echo "Your fucking DB with the fucking table was succesfully created.";
- // Execute this shit just once.
- ?>
- <?php
- // Insert shit in the fucking DB.
- // [INSERT YOUR FUCKING CHATLINE PARSING CODE HERE]
- $db = new SQlite3('ChatlogDB.db');
- $db->queryExec('INSERT INTO Chatlog (chatline) VALUES ($string)'); // Fucking change $string to the name of your string variable!
- $db->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement