$result = mysql_query("SELECT DISTINCT name, text FROM review order by id desc limit 3"); while ($row = mysql_fetch_assoc($result)) { ?> <h3><a title="title"><?php echo $row['name'] ?></a></h3> <p><?php echo $row['text'] ?></p> In this case, the text is an array, each element of which contains many different paragraphs that we get from the database and they are displayed sequentially. How to make a text output with line break observance?
<br>for line breaks - Mr. Black$result = mysql_query("SELECT DISTINCT name, text FROM news order by id desc limit 3"); while ($row = mysql_fetch_assoc($result)) { $name = $row['name']; $text= $row['text']; echo " <h3><a title='title'>$name</a></h3> <p>$text</p><br> "; }$result = mysql_query("SELECT DISTINCT name, text FROM news order by id desc limit 3"); while ($row = mysql_fetch_assoc($result)) { $name = $row['name']; $text= $row['text']; echo " <h3><a title='title'>$name</a></h3> <p>$text</p><br> "; }- Mr. Black