Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Create the fucking 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');
  14. $db->queryExec('INSERT INTO Chatlog (chatline) VALUES ($string)'); // Fucking change $string to the name of your string variable!
  15. $db->close();
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement