diff --git a/crawl.php b/crawl.php index db3bfbd..ce55148 100644 --- a/crawl.php +++ b/crawl.php @@ -46,7 +46,7 @@ foreach ($arg as $url) { } echo "title: ".$title."\n"; -echo $document; + $stmt = $db->prepare('INSERT INTO indexed (title, url, content) VALUES (?, ?, ?)'); $stmt->execute([$title, $url, $document]); }