$pdo = new PDO ( "mysql:host=$dbHost;dbname=$dbName;charset=utf8", $dbUser, $dbPassword );
$stmt = $pdo->prepare('INSERT INTO ТАБЛИЦА ( content, author ) VALUE ( :content, :author )');
foreach ($result as $msg ) {
$stmt->bindValue(':content', $msg["content"]);
$stmt->bindValue(':author', $msg["author"]["username"]);
$result = $stmt->execute();
}