Receipt of a sample from the OBD with a line transfer



  • $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 of each component contains many different paragraphs that are derived from the OBD and are produced in series. How do we draw the text from the line?



  • $result = mysql_query("SELECT DISTINCT name, text  FROM review order by id desc limit 3"); 
         while ($row = mysql_fetch_assoc($result)) {
    
    $text = str_replace("\n","<br>",$row['text']);
    
         ?>
         <h3><a title="title"><?php echo $row['name'] ?></a></h3>
         <p><?php echo $text ?></p>
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2