title: Split text from the database in two columns
body: <p>I have a bootstrap based website with 2 columns(col-lg-6 and col-lg-6).
  I have the ability to add text from an admin panel (articles).</p>
  
  <p>How can I make it so it splits in the second div (col-lg-6) after a specific number of characters or after I insert a character or something that will represent the breakage?</p>
  
  <p>I prefer a PHP solution, but Javascript/Jquery would do too</p>
  
  <p>edit <em>*</em></p>
  
  <pre><code> if(isset($_GET['chapter']) &amp;&amp; !empty($_GET['chapter'])){
              $chapterid = (int)$_GET['chapter'];
  
  
                              $chaptertitle = mysql_query("SELECT bookname FROM books WHERE id=$chapterid");
                              $chaptertitle = mysql_fetch_array($chaptertitle);
                              $chaptertitle = $chaptertitle[0];
  
  
                              $chapter = mysql_query("SELECT bookContent FROM books WHERE id=$chapterid");
                              $chapter = mysql_fetch_array($chapter);
                              $chapter = $chapter[0];
  
  
                              $bookcontent = mysql_query("SELECT * FROM books WHERE bookid=$id");
                              $bookcontainer = '';
                              while($row = mysql_fetch_array($bookcontent)){
                                  $bookcontainer .= '&lt;h2&gt;'.$row['bookname'].'&lt;/h2&gt;' . $row['bookContent'];
                              }
  </code></pre>
  
  <p>and this is the place where the code is printed</p>
  
  <pre><code>     &lt;div class="row"&gt;
                      &lt;div class="col-lg-6" id="paragraphs"&gt;
                          &lt;div style="width:100%;"&gt;
  
                          &lt;?php
  
                          //if($errors == false){
                              echo $chapter;
                          //}
                          //else{
                              //echo 'erorr madarfaker';
                          //}
  
                      ?&gt;
                         &lt;/div&gt;
                      &lt;/div&gt;
  
  
  
  
  
                      &lt;div class="col-lg-6"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If anyone is interested in this: I made 2 fields in the admin panel and the variable that was being sent to the database was "field 1 + ' | ' + field 2" and then I used explode to display the content on 2 sides, separator being " | "</p>