Error: “unexpected T_STRING”

I need to retrieve news from a database on request. But I ran into an incomprehensible syntax problem.

<?php
header('Content-type: text/html; charset=utf-8');
$news="";
ob_start();
require_once "conf.php";
$zapros1=mysql_query("SELECT * FROM news ORDER BY id DESC LIMIT 5");
while ($rezult=mysql_fetch_array($zapros1)){
echo "<div class="accordion"> ";
echo ("<p> {$rezult['text']} </p>");
echo "</div>";
}
?>

The system doesn’t like line 9 (echo "<div class="accordion"> ";) writes

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampplite\htdocs\bol\news.php on line 9

I don’t understand what’s wrong.


Answer 1, authority 100%

We can assume that you either need to escape double quotes (echo "<div class=\"accordion\">") or use single quotes. Otherwise, the parser assumes that you break the line after class=.