This commit is contained in:
Andreas 2019-09-17 16:44:11 +02:00
parent cfd9e313c4
commit 6a24eaf84a

View File

@ -42,13 +42,13 @@ function populateDB(){
$query = $con->query("INSERT INTO `thread` (`users_ID`, `board_ID`, `title`, `text`, `date_created`) VALUES ('1', '1', 'Test thread', 'Deze thread is een test.', '2019-06-20 13:55:37'), $query = $con->query("INSERT INTO `thread` (`users_ID`, `board_ID`, `title`, `text`, `date_created`) VALUES ('1', '1', 'Test thread', 'Deze thread is een test.', '2019-06-20 13:55:37'),
('1', '2', 'Waa', 'Frist niffo', '2019-06-20 13:56:42')"); ('1', '2', 'Waa', 'Frist niffo', '2019-06-20 13:56:42')");
echol("created test threads"); echol("created test threads");
$query = $con->query("INSERT INTO `reply` (`thread_ID`, `users_ID`, `content`, `date_created`) VALUES (NULL, '1', '1', 'heehee eks dee', '2019-06-21 11:01:57'), $query = $con->query("INSERT INTO `reply` (`thread_ID`, `users_ID`, `content`, `date_created`) VALUES ('1', '1', 'heehee eks dee', '2019-06-21 11:01:57'),
(NULL, '1', '1', 'hoi\r\n', '2019-06-21 11:07:25'), ('1', '1', 'hoi\r\n', '2019-06-21 11:07:25'),
(NULL, '2', '2', 'fristi niBBa', '2019-06-21 11:08:08'), ('2', '2', 'fristi niBBa', '2019-06-21 11:08:08'),
(NULL, '1', '1', 'was jouw prebleem', '2019-06-21 14:41:00'), ('1', '1', 'was jouw prebleem', '2019-06-21 14:41:00'),
(NULL, '1', '2', 'Mijn naam is bram', '2019-06-21 17:58:12'), ('1', '2', 'Mijn naam is bram', '2019-06-21 17:58:12'),
(NULL, '1', '2', 'huh wuddufuq', '2019-06-21 17:58:29'), ('1', '2', 'huh wuddufuq', '2019-06-21 17:58:29'),
(NULL, '1', '1', 'huts a neef', '2019-06-21 17:59:27')"); ('1', '1', 'huts a neef', '2019-06-21 17:59:27')");
echol("created test replies"); echol("created test replies");
} }
catch(PDOException $e){ catch(PDOException $e){